Support for Railo?

0 views
Skip to first unread message

Terry Schmitt

unread,
Jul 16, 2007, 10:19:46 PM7/16/07
to transfer-dev
This question is really for Mark...

What are your thoughts on making Transfer compatible with Railo? I
have been testing Railo 2.0 and find that the speed of Railo is simply
amazing over ColdFusion.

The only problem is that my favorite ORM (Transfer, of course) won't
work on Railo! Reactor does work correctly, but I really took a liking
to Transfer in my last project.

Thanks,
Terry Schmitt

Mark Mandel

unread,
Jul 16, 2007, 11:43:49 PM7/16/07
to transf...@googlegroups.com
The wheels are turning... that's all I can say.

:oD

Mark


--
E: mark....@gmail.com
W: www.compoundtheory.com

Wally Kolcz

unread,
Jul 17, 2007, 9:10:23 AM7/17/07
to transf...@googlegroups.com
When declaring a object you need to determine the ID, which I assume is the
primary key, do you then also need to declare it as a property too?

Transfer.xml

<package name="story">
<object name="story" table="stories">
<id name="id" type="numeric" /> <--- I set the ID to
the column id in the table
<property name="id" type="numeric" column="id"/>
<----do I need this too?
<property name="user" type="string" column="user"/>
<property name="restaurant" type="string"
column="restaurant"/>
<property name="title" type="string"
column="title"/>
<property name="body" type="string" column="body"/>
<property name="date" type="date" column="date"/>
<property name="cat" type="numeric" column="cat"/>
<onetoone name="cat">
<link column="cat" to="category.id"/>
</onetoone>
<manytoone name="comments">
<link column="id" to="comments.storyid"/>
<collection type="array">
<order property="date"/>
</collection>
</manytoone>
<onetoone name="user">
<link column="user" to="user.username"/>
</onetoone>
</object>
</package>


Ronan Lucio

unread,
Jul 17, 2007, 9:19:30 AM7/17/07
to transf...@googlegroups.com
Wally,

Wally Kolcz escreveu:


> When declaring a object you need to determine the ID, which I assume is the
> primary key,

Yes.

> do you then also need to declare it as a property too?
>

No, you declare the column (id, property or a relationship) only once.

In your example you´ll need to remove the properties id, user and cat.

collection type is avaliable for onetomany and manytomany relationships,
not for manytoone's.

In the manytoone relationship you won´t use the id column.
You´ll need to create a FK to the parent table.

Ronan

Scott Stroz

unread,
Jul 17, 2007, 9:21:57 AM7/17/07
to transf...@googlegroups.com
As was answered on the Model-Glue mailing list (why did you post this question there as well), no, you do not.  If I remember correctly, it may even throw an error.
--
Scott Stroz
Senior Software Architect
Alagad
http://www.alagad.com
1-888 ALAGAD-4 ext.7

Wally Kolcz

unread,
Jul 17, 2007, 9:55:45 AM7/17/07
to transf...@googlegroups.com

Sorry  Scott, I posted them both at the same time to make sure I could get the answer. Wasn’t sure if the MG newsgroup was the right place to post it.

Mark Mandel

unread,
Jul 17, 2007, 8:05:02 PM7/17/07
to transf...@googlegroups.com
Wally -

For future reference, it's often considered bad 'net-iquette' to cross
post like that.

Glad to see you got your issue resolved,

Mark

On 7/17/07, Wally Kolcz <wko...@isavepets.com> wrote:
>
>
>
>

> Sorry Scott, I posted them both at the same time to make sure I could get
> the answer. Wasn't sure if the MG newsgroup was the right place to post it.
> >
>

Wally Kolcz

unread,
Jul 17, 2007, 9:15:58 PM7/17/07
to transf...@googlegroups.com
Sorry,again. Didn't know how many your community also posts in the MG
newsgroup. Didn't mean to cross-post. Won't happen again. I implore the
whole community to have mercy on my soul and forgive me.


Mark Mandel

unread,
Jul 17, 2007, 9:23:19 PM7/17/07
to transf...@googlegroups.com
*laughs*

Oh I think we may have mercy, but you never know ;)

Mark

J MacKay

unread,
Jul 17, 2007, 9:42:01 PM7/17/07
to transf...@googlegroups.com
Too late.  Now your coding soul is doomed to burn in the fires of spaghetti-coders hell for all eternity ;-) 

Janet


Need a vacation? Get great deals to amazing places on Yahoo! Travel.

Reply all
Reply to author
Forward
0 new messages