Hi!
I've seen that this has been a hot topic in lists around. I have the same problem as 
the rest, to use a foreign key as part of
primarykey in jboss. The ejb spec is talking about one to one relationships; wouldn't 
such relationship neccesary involve a pk on
one side and a foreignkey as pk on the other side? (unless we have a unique index on 
the field).
I've seen a suggestion on solution somewhere; Let the pk/fk field be a pk; set the pk 
using the fk object in ejbcreate; write a
ejbselect (or finder) that returns the fk.

Any other workaround to fool jboss regarding foeignkeys within a primarykey?


-Jon

[middlegen] (entitybean.Server ?   ) WARNING (cmp20): The table zonesequenceitems has 
a primary key where the following columns also
are forei
gn keys: zoneid. Having set fkcmp="false" this will most likely cause problems at run 
time because those columns will not be
persisted, and therefore new instances will not set the key fields that correspond to 
foreign keys. The database might choke on
this.



-------------------------------------------------------
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/
_______________________________________________
middlegen-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/middlegen-user

Reply via email to