This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths 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
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.
 
It's not a secret anymore!