Toni,
1. For reference see my post dated posted September 1, 2014 10:34:47 AM PDT
For Option 2, you need this key piece of info: @Column(name="TIRE_POSITION")
2.
While testing using SessionFactory it worked fine
without
But with EntityManager, there is an exception.
Internal Exception: java.sql.SQLIntegrityConstraintViolationException: cannot insert NULL into 'TIRE_POSITION'
To fix this, you need @Column(name="TIRE_POSITION")
3. Given you're using EntityManager, you need to copy the above code in point 1.
4. Should it OK now for your testing.
5. Mine worked perfectly in 2 cases using SessionFactory and EntityManager.