Skip to content

Commit 8e708ed

Browse files
committed
HHH-19515 incorporate feedback from @sebersole
1 parent 4643609 commit 8e708ed

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
* {@code hibernate-scan-jandex} or some other service implementing
7777
* {@link org.hibernate.boot.archive.scan.spi.ScannerFactory} is available,
7878
* the given URLs are scanned for entity classes, alleviating the program
79-
* of the need to call {@link #managedClass}.
79+
* of the need to call {@link #managedClass} or {@link #mappingFile}.
8080
*
8181
* @apiNote The specification explicitly encourages implementors to extend
8282
* {@link PersistenceConfiguration} to accommodate vendor-specific
@@ -90,7 +90,7 @@
9090
*/
9191
public class HibernatePersistenceConfiguration extends PersistenceConfiguration {
9292

93-
private URL rootUrl;
93+
private final URL rootUrl;
9494
private final List<URL> jarFileUrls = new ArrayList<>();
9595

9696
/**
@@ -103,6 +103,7 @@ public class HibernatePersistenceConfiguration extends PersistenceConfiguration
103103
*/
104104
public HibernatePersistenceConfiguration(String name) {
105105
super( name );
106+
this.rootUrl = null;
106107
}
107108

108109
/**

0 commit comments

Comments
 (0)