Skip to content

Commit

Permalink
add an API note to HibernatePersistenceConfiguration
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinking committed Nov 24, 2024
1 parent 1b3385b commit 08569e2
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@
* Hibernate extension to the Jakarta Persistence {@link PersistenceConfiguration}
* contract.
*
* @apiNote The specification explicitly encourages implementors to extend
* {@link PersistenceConfiguration} to accommodate vendor-specific
* extensions in a more typesafe way. Of course, programs which
* desire configuration logic to be portable between JPA providers
* should use {@code PersistenceConfiguration} directly.
*
* @author Steve Ebersole
*
* @since 7.0
Expand All @@ -49,6 +55,9 @@ public HibernatePersistenceConfiguration(String name) {
super( name );
}

/**
* Create a new {@link SessionFactory} based on this configuration.
*/
@Override
public SessionFactory createEntityManagerFactory() {
return (SessionFactory) super.createEntityManagerFactory();
Expand Down

0 comments on commit 08569e2

Please sign in to comment.