You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Dan Bachelder <ch...@chowda.net> on 2001/08/17 08:28:05 UTC
complex objects...
Is there a way in torque to handle a situation like the following:
I have a NOTE table.. I want to be able to attach a NOTE to any other table
in my database.. So I have an ID field which corresponds to the PK of the
table I am attaching to.. and I also have a TABLE_NAME column which would
have the name of the table the note is attached to..
Is there a way for torque to handle this in its mappings? a good resource or
example somewhere would be fine...
thanks.
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org
Re: complex objects...
Posted by Vidakovic Aleksandar <sp...@gmx.net>.
Look at the java-icalendar code. The structure of the tables is pretty
much the same. I think the author used mainly castor for this type of
problem...
John McNally wrote:
>Torque will not be able to generate any code to help with this kind of
>mapping. You will have to add your own methods.
>
>john mcnally
>
>Dan Bachelder wrote:
>
>>Is there a way in torque to handle a situation like the following:
>>
>>I have a NOTE table.. I want to be able to attach a NOTE to any other table
>>in my database.. So I have an ID field which corresponds to the PK of the
>>table I am attaching to.. and I also have a TABLE_NAME column which would
>>have the name of the table the note is attached to..
>>
>>Is there a way for torque to handle this in its mappings? a good resource or
>>example somewhere would be fine...
>>
>>thanks.
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: turbine-user-help@jakarta.apache.org
>>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: turbine-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org
Re: complex objects...
Posted by John McNally <jm...@collab.net>.
Torque will not be able to generate any code to help with this kind of
mapping. You will have to add your own methods.
john mcnally
Dan Bachelder wrote:
>
> Is there a way in torque to handle a situation like the following:
>
> I have a NOTE table.. I want to be able to attach a NOTE to any other table
> in my database.. So I have an ID field which corresponds to the PK of the
> table I am attaching to.. and I also have a TABLE_NAME column which would
> have the name of the table the note is attached to..
>
> Is there a way for torque to handle this in its mappings? a good resource or
> example somewhere would be fine...
>
> thanks.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org