according to Hibernate’s JavaDoc, StackOverflow comments by Vlad as well as e-mails and Wiki pages by Steve, hbm.xml is/will be deprecated and will be replaced by some sort of “extended JPA orm.xml” mapping in Hibernate 7.
We would like to use Hibernate’s “extended JPA” XML mapping, but we have three main worries about the whole process:
- Information on JPA’s orm.xml mapping on the web is generally scarce, which leads me to the assumption that only few people are using it? Hibernate is also driving users away from XML towards annotations in forum comments, e-mails and its documentation. So I wonder whether “JPA XML for Hibernate” is really future proof or will it be “dead on arrival”?
- Will “extended JPA XML for Hibernate” really catch up with the features that hbm.xml and annotations have to offer? What about auto scanning for *-orm.xml files (works for *.hbm.xml)? What about
<natural-id>? What about @NaturalIdCache (which was obviously never implemented for HBM?)? What about
- And, of course, a rough estimate on when we can expect full “extended JPA XML” support would be greatly appreciated…
Looking forward to hearing from you!
Best regards, winne