Is there a way of forcing the hbm2java goal of hiber开发者_StackOverflow社区nate3 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.
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.
精彩评论