For a specific reason, I need to map object-relational (JPA) of my entities with XML. [Unfortunately,] I can not use annotations to do this. It turns out that on certain properties I need to use Hibernate-specific features. For example, extra lazy collections, something I would easily do using annotations with @LazyCollection (LazyCollectionOption.Extra).
The JPA Hibernate documentation reads as follows:
"If you wish to use Hibernate specific features in some entities, you 'll have to either use annotations or fallback to hbm files. ( link )
It turns out that I have no idea how to use the aforementioned "hbm files" along with my orm.xml (if that's what I should do).
Does anyone know how to do this?