I have one table called Message which handles i18n messages.

Next to that, I have multiply tables which uses the Message
table to store i18n messages.

As the Message table (and JavaBean next to it) depends 
on the table which holds the message (the table as a reference
to the Message table). Because there are multiply tables
which uses the Message table I can't directly make the Message
table to depend on the holder table. or can I?

Now I have to first do db.create(message) and then
store the message to the holder table like something.setMessage(message) and
then call db.create(something). I also need to remove the message
the same way.

Is there any way to make the message table depend to the holder tables
so I could just do something like:
"something.setMessage(new Message()); db.create(something);"

Any ideas? 

 - jtm

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to