so, it looks like your entity code is OK. you just need to add an extra step when saving:
PartyIsPerson p = new PartyIsPerson();
| p.setUsername("Guest"); //Guest
| p.setPassword("Guest"); //Guest
| p.setForename("Guest"); //Guest
| p.setLastname("Guest"); //Guest
| p.setPartyId(100);
|
| PersonHasCustomization phc = new PersonHasCustomization();
| phc.setPartyidperson(p.getPartyId());
| phc.setLocale("DE_de");
| p.setCustomization(phc);
|
| EntityManager.persist(p)
from the "Java Persistence w/Hibernate" book it says, JPA doesn't include a standard way of dealing with shared primary key generation. So, it's up to you to set it (page 282).
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4082403#4082403
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4082403
Well I guess I found the problem, but still have no solution:
JBoss is trying to load the XML-file. It is doing this by using "ObjectModelBuilder" which is referencing "javax.xml.namespace.NamespaceContext" - which is not included in jdk 1.4.2_03....
JBoss tries to be nice, swallows the "ClassNotFound" Exception and tries to load the file in Sun's "config" Format.... which of course does not match...
So, what to do now???
Alfred
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4082399#4082399
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4082399