Skip to content

Commit 087f9ab

Browse files
committed
HHH-16548 document the requirement for a ScannerFactory
1 parent 7c7235d commit 087f9ab

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

hibernate-core/src/main/java/org/hibernate/cfg/PersistenceSettings.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,11 +142,14 @@ public interface PersistenceSettings {
142142

143143
/**
144144
* Identifies a comma-separated list of values indicating the types of things we should
145-
* auto-detect during scanning. Allowable values include:
145+
* autodetect during scanning. Allowable values include:
146146
* <ul>
147147
* <li>{@code "class"} specifies that {@code .class} files are discovered as managed classes
148148
* <li>{@code "hbm"} specifies that {@code hbm.xml} files are discovered as mapping files
149149
* </ul>
150+
* When {@code .class} discovery is enabled, the module {@code hibernate-scan-jandex}
151+
* must be added as a dependency, or some other implementation of the service
152+
* {@link org.hibernate.boot.archive.scan.spi.ScannerFactory} must be made available.
150153
*
151154
* @see org.hibernate.boot.MetadataBuilder#applyScanOptions
152155
*/

0 commit comments

Comments
 (0)