only Basic, Column, Lob, Temporal, and Enumerated can be used to map a @Embedded class. Thus, you can't use Country as a primary key. That's one problem I see. Another is that the @OneToMany on Country to CountryRegion is not bidirectional, so the mappedby would not work. You'd have to do:
| @Entity public class Country { | ... | @OneToMany | @JoinColumn(name="country_code_1") | List<CountryRegion> getCountryRegions() {...} | There's probably other stuff wrong, but get those to work first View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3914764#3914764 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3914764 ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user