-
1. Re: entity relationship from several jars
waynebaylor Jun 7, 2007 8:35 AM (in response to deady_)Are you deploying the two jars separately, or are they in an ear?
-
2. Re: entity relationship from several jars
deady_ Jun 7, 2007 9:19 AM (in response to deady_)separetly
-
3. Re: entity relationship from several jars
waynebaylor Jun 7, 2007 10:14 AM (in response to deady_)From a clean start, do you get the hibernate.AnnotationException when you deploy client.jar first before guestbook.jar?
-
4. Re: entity relationship from several jars
deady_ Jun 7, 2007 10:21 AM (in response to deady_)no I don't. client.jar deploys without any error
-
5. Re: entity relationship from several jars
jmiguel77 Jul 10, 2007 2:46 PM (in response to deady_)Hi
I have exactly the same case
I want to add a @ManyToOne in an entity, that points to an entity in a different jar (deployed separately)
And it gives me the same exception
org.hibernate.AnnotationException: @OneToOne or @ManyToOne on com.casabaca.twc.ejb.model.TwcEstado.facCompania references an unknown entity: com.casabaca.s3s.ejb.model.FacCompania
FacCompania is in another ejb.jar file that deploys correctly -
6. Re: entity relationship from several jars
waynebaylor Jul 11, 2007 11:50 AM (in response to deady_)is the persistence-unit name in client.jar the same as the one used in guesbook.jar?
if not, then i bet that's why you had to include the client class in the guestbook's persistence.xml. -
7. Re: entity relationship from several jars
simon_lebettre Jul 13, 2007 1:00 PM (in response to deady_)You may be able to make it work by referencing your other jar with <jar-file> in persistence.xml. see http://docs.jboss.org/ejb3/app-server/reference/build/reference/en/html/entityconfig.html