Do you know if this is supported by JBoss? I keep getting a "Mappings were
not provided for all fields: unmaped fields" error yet I can see nothing
wrong. Any suggestions?

cheers

Jordan

-----Original Message-----
From: Marcus Brito [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 17 December 2002 1:04 PM
To: Jordan Thomas
Cc: [EMAIL PROTECTED]
Subject: 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

Reply via email to