aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JPA - Problem with auto create tables.
 
Similar Threads
EclipseLink1.1 inserts no data..
JPA/Hibernate 3.5.5 in WebSphere Application Server 7 Exception
Unable to use @NamedQuery in a session bean?
java.lang.IllegalArgumentException: Unknown entity
A question about "persistence.xml" by Weblogic