Skip to content

Commit 438b9bd

Browse files
committed
add an API note to HibernatePersistenceConfiguration
1 parent 5599357 commit 438b9bd

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

hibernate-core/src/main/java/org/hibernate/jpa/HibernatePersistenceConfiguration.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@
3232
* Hibernate extension to the Jakarta Persistence {@link PersistenceConfiguration}
3333
* contract.
3434
*
35+
* @apiNote The specification explicitly encourages implementors to extend
36+
* {@link PersistenceConfiguration} to accommodate vendor-specific
37+
* extensions in a more typesafe way. Of course, programs which
38+
* desire configuration logic to be portable between JPA providers
39+
* should use {@code PersistenceConfiguration} directly.
40+
*
3541
* @author Steve Ebersole
3642
*
3743
* @since 7.0
@@ -49,6 +55,9 @@ public HibernatePersistenceConfiguration(String name) {
4955
super( name );
5056
}
5157

58+
/**
59+
* Create a new {@link SessionFactory} based on this configuration.
60+
*/
5261
@Override
5362
public SessionFactory createEntityManagerFactory() {
5463
return (SessionFactory) super.createEntityManagerFactory();

0 commit comments

Comments
 (0)