This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes JPA  - Problem with auto create tables. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "JPA  - Problem with auto create tables. " Watch "JPA  - Problem with auto create tables. " New topic
Author

JPA - Problem with auto create tables.

Marcin Slonsky
Greenhorn

Joined: Apr 24, 2011
Posts: 1
Hi

I have EJB module with user external jar with entities. I use this configuration:



In test-model jar there is f.e. User entity. When I create it and try to persist with EntityManager I'v got error like sql grammar exception near User. When I check database, there is no User table.
When I move User entity from jar direct to ejb archive and persist it, then User table is created.

Is there any additional configuration required for jar-file?
I wannt to keep model and driver layer separately but manually creating all database structure is painful.

Any ideas?

Thanks in advance
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JPA - Problem with auto create tables.
 
Similar Threads
A question about "persistence.xml" by Weblogic
JPA/Hibernate 3.5.5 in WebSphere Application Server 7 Exception
EclipseLink1.1 inserts no data..
java.lang.IllegalArgumentException: Unknown entity
Unable to use @NamedQuery in a session bean?