Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JPA - Problem with auto create tables.

Marcin Slonsky
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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