-
Notifications
You must be signed in to change notification settings - Fork 579
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resolves JTA/JPA transaction synchronization issues #1473
Resolves JTA/JPA transaction synchronization issues #1473
Conversation
Signed-off-by: Laird Nelson <laird.nelson@oracle.com>
This PR, at a high level, ensures that Surefire will run twice (in normal operation): once using Eclipselink, and once using Hibernate. This ensures that our tests run against both major JPA providers we support. To accomplish this, the In addition, the Maven default executions— |
Signed-off-by: Laird Nelson <laird.nelson@oracle.com>
This PR also exposed several unspecified behaviors. In one, Eclipselink happily lets a once-managed-now-detached entity get re-persisted, whereas Hibernate throws an exception in such a use case. In another, Eclipselink defers acquiring database-generated identifiers until flush time; Hibernate seems to somehow come up with them early. Each of these cases is exactly the sort of thing that makes running our tests against both providers valuable. |
…clipselink and Hibernate Signed-off-by: Laird Nelson <laird.nelson@oracle.com>
Signed-off-by: Laird Nelson <laird.nelson@oracle.com>
This PR also proves that transactional interceptor-governed methods work fine under Eclipselink and Hibernate. |
Signed-off-by: Laird Nelson <laird.nelson@oracle.com>
Signed-off-by: Laird Nelson <laird.nelson@oracle.com>
Signed-off-by: Laird Nelson <laird.nelson@oracle.com>
Signed-off-by: Laird Nelson laird.nelson@oracle.com