Hibernate 4 supported adding packages to scan (specifically, for being able to find annotations such as generators applied to package-info.java) by calling Configuration#addPackage(String). This method has been removed in Hibernate 5 with the configuration overhaul, and I cannot determine how to tell Hibernate to scan at the package level. The documentation section that I would expect to describe that is a "todo", and I didn't find a particularly promising-looking candidate in MetadataBuildingOptions, which seemed like the place to go.
|