views:

363

answers:

1

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.

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