I logged the following issue on Spring Boot issue tracker and have now been directed here.
Spring-Boot 2.0.8 adds the mappings by creating entities from the *hbm.xml files listed in spring.jpa.mapping-resources=hibernate.cfg.xml, Any release after that ignores the mapping file.
javax.persistence.metamodel.Metamodel metaModel = emf.getMetamodel(); Set<EntityType<?>> entityTypeSet = metaModel.getEntities();
HH12871 has been implicated as reason why our mapped classes are no longer ending up as EntityType.
We have mappings and use the EntityType created by Hibernate to get hold of its Attributes and their JavaType.
EntityType persistEntityType = iceEntityManager.get(persistEntityName); Attribute persistAttribute = persistEntityType.getAttribute(attributeName); Class persistAttributeJavaTypeClass = persistAttribute.getJavaType();
Previously this was no problem at all.
In our project there just is no difference between the mapped classes and the annotated
@Entity classes. Why should there be a difference?