-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Can Hibernate generate tables?
PostPosted: Mon May 11, 2009 10:09 am 
Beginner
Beginner

Joined: Wed Apr 23, 2008 12:07 pm
Posts: 22
Is it possible for Hibernate to generate tables out of entity beans, even if the persistence.xml is in a different jar file than the entity beans?
I am deploying my EAR file in JBoss. The ear file contains 2 jar files, one with the entity beans and one as a simple jar file containing META-INF\persistence.xml.
Trying to move the persistence.xml to the ejb.jar leads to generating my tables. So the datasource and persistence.xml must be correct. While deploying my ear file it tells me "SchemaUpdate complete" but there is nothing generated :(
hbm2dll -> update is my default option


Top
 Profile  
 
 Post subject: Re: Can Hibernate generate tables?
PostPosted: Mon May 11, 2009 11:07 am 
Beginner
Beginner

Joined: Wed Apr 23, 2008 12:07 pm
Posts: 22
found the solution by using <jar-file> tag in persistence.xml
now my question is:
can ESB be run with JBoss 5.0 ?
or is there a workaround, because this tag seems not to work with jboss 4 :(


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.