markusoj wrote:
However, JPA/EJB 3.0 or some Hibernate Annotations specific extensions would be the prefered technology. So, the general question is if there is a way to use the <any> principle with JPA?
With plain JPA, hmm ... as you are aware, you can use it with H3 - which is JBoss JPA implementation ;-).
markusoj wrote:
I know you could mix hbm.xml files with JPA Annotations, but there are some concerns using a mixture of "two" technologies in the project team.
We use it - we have a lot of 'legacy' entities - which we don't feel like annotating - just extra work for entities that we use all the time - User, Address, Company, ...
markusoj wrote:
Another alternative I would see is extending Hibernate Annotations ourselves - any ideas, comments or experiences on this approach?
You can always submit a patch of additional Hibernate Annotations. :-)
Rgds, Ales