[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: EJB 2.0: Compound Primary Key and CMR

roist do-not-reply at jboss.com
Wed Mar 7 11:10:01 EST 2007


if you want compound foreign keys, you've got to work them for yourselves. 

since compound foreign keys are against normalization, i think we won't see this too soon entering any ejb-spec. 

the error is actually quite precise in that 'Both roles of a relation-table 
  mapped relationship must have key fields' = 
<prim-key-field> instead of only <prim-key-class>

i'd always use ids for any table, but this is just my opinion.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025846#4025846

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025846



More information about the jboss-user mailing list