Unfortunately, JBoss up to 3.0.4 and I think, also, 3.2RC2 doesn't allow this.
Bernhard -----Urspr�ngliche Nachricht----- Von: Marcus Brito [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 17. Dezember 2002 13:04 An: Jordan Thomas Cc: [EMAIL PROTECTED] Betreff: Re: [Xdoclet-user] Compound Primary Key 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 This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you. ------------------------------------------------------- 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
