Scanner detects hbm mappings with exclude-unlisted-classes=true
Description
Activity
Show:
Christian Beikov last week
JPA bootstrap obviously requires that the semantics of exclude-unlisted-classes
is respected, so we can't just do scanning of non-listed classes/jars/mappings unless explicitly configured by other means like the hibernate.archive.autodetection
setting.
Former user January 19, 2016 at 8:34 PM
Workaround is to set hibernate.archive.autodetection="" or a string that does not contain "hbm" or "class".
Rejected
Details
Assignee
Reporter
Former user
Former user(Deactivated)Labels
Components
Priority
Minor
Created January 19, 2016 at 8:27 PM
Updated last week
Resolved last week
In 4.2, when exclude-unlisted-classes is true, hbm files are not detected. [1]
This got broken in 4.3 and is still broken in 5.0. [2]
[1] https://github.com/hibernate/hibernate-orm/blob/4.2/hibernate-entitymanager/src/main/java/org/hibernate/ejb/Ejb3Configuration.java#L829
[2] https://github.com/hibernate/hibernate-orm/blob/master/hibernate-core/src/main/java/org/hibernate/boot/archive/scan/internal/StandardScanOptions.java#L23