Jordan Thomas wrote:
Thanks Macus

Maybe a possible solution would be to make a getFK() and setFK() method to
access the relation directly.  Not really the ultimate but it would probably
get around my problem. That is what middlegen seems to do. Maybe that way it
will. Can you see a problem with this? For me, this is not optimal but if it
gets set only in the ejbCreate then it may work. Please send me some
feedback folks.
What most containers (at least orion, weblogic, pramati) do is to let you to define a CMP and a CMR on the same database column.

Using your example, you could define a getLanguageId() method and tag it as a CMP field and PK field, and define a getLocale() method and tag it as a relation. Then, in your ejbCreate() you use setLanguageId() to set the foreign key.

--
Pazu



-------------------------------------------------------
This sf.net email is sponsored by:
With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel
http://hpc.devchannel.org/
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to