Is there a way of forcing the hbm2java goal of hibernate3 maven plugin to generate java classes with hibernate annotations instead of ejb3 annotations? I really do not need ejb/jpa, and hibernate annotations would suit me better because of the better integration with grails.
views:
363answers:
1
+3
Q:
hibernate3 maven plugin:make hbm2java generate hibernate annotations instead of ejb3 annotations
A:
To my knowledge, no, ejb3=true
in hbm2java
means using EJB3/Hibernate Annotations. Quoting the generating annotated pojos thread in Hibernate's forums:
ejb3 means use JPA and Hibernate annotations; we try and generate everything we can with JPA but some things require hibernate annotations.
Maybe have a look at the Jira issue but in the current state, you can't.
Pascal Thivent
2010-01-27 21:50:15