Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JPA - Problem with auto create tables.

 
Marcin Slonsky
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic