Skip to content

Commit

Permalink
deprecate PersistenceUnitTransactionType and add EntityManagerFactory…
Browse files Browse the repository at this point in the history
….getTransactionType

see jakartaee#477
  • Loading branch information
gavinking committed Aug 23, 2023
1 parent 42155f8 commit d4fb00a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,14 @@ public interface EntityManagerFactory extends AutoCloseable {
*/
public PersistenceUnitUtil getPersistenceUnitUtil();

/**
*The type of transaction management used by this persistence
* unit, either resource-local transaction management, or JTA.
*
* @since 3.2
*/
public PersistenceTransactionType getTransactionType();

/**
* Return interface providing access to schema management
* operations for the persistence unit.
Expand Down
2 changes: 1 addition & 1 deletion api/src/main/java/jakarta/persistence/ValidationMode.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ public enum ValidationMode {
* The persistence provider must not perform lifecycle event validation.
*/
NONE
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@
* resource-local entity managers.
*
* @since 1.0
*
* @deprecated replaced by
* {@link jakarta.persistence.PersistenceTransactionType}
*/
@Deprecated(since = "3.2", forRemoval = true)
public enum PersistenceUnitTransactionType {

/** JTA entity managers will be created. */
Expand Down

0 comments on commit d4fb00a

Please sign in to comment.