开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜