You may be able to make it work by referencing your other jar with
in persistence.xml. see
http://docs.jboss.org/ejb3/app-server/reference/build/reference/en/html/entityconfig.html
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4064090#4064090
Reply to the p
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.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4063068#4063068
Reply to
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 refere
no I don't. client.jar deploys without any error
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4052168#4052168
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4052168
___
jboss-
>From a clean start, do you get the hibernate.AnnotationException when you
>deploy client.jar first before guestbook.jar?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4052161#4052161
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&m
separetly
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4052127#4052127
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4052127
___
jboss-user mailing list
jboss-user@lists.jbos
Are you deploying the two jars separately, or are they in an ear?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4052101#4052101
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4052101