开发者

hibernate3 maven plugin:make hbm2java generate hibernate annotations instead of ejb3 annotations

开发者 https://www.devze.com 2022-12-18 11:23 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消