Wicket - 哪个 ORM?
我正在寻找一个易于使用且集成的 Wicket 应用程序 ORM。我正在考虑休眠。这是一个好的选择吗? Wicket/Hibernate 可能出现哪些问题?欢迎任何其他建议。感谢您的任何帮助。
I'm looking for an easy-to-use and intergrate ORM for Wicket application. I was thinking about Hibernate. Is it a good choice? What are the possible problems with Wicket/Hibernate? Any other suggestions are welcome. Thanks for any help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
您不应该将任何 ORM 与 wicket 紧密耦合。使用 spring 或 guice 来管理您的服务层(包括 ORM)。使用 wicket-spring 或 wicket-guice 集成将您的服务组件注入到 wicket 中。如果你这样做,ORM 的选择完全取决于你。这是本机支持的 ORM 技术的参考到了春天。 (我会选择 JPA,因为它是一个开放标准)
You should not tightly couple any ORM with wicket. Use spring or guice to manage your service layer (including ORM). Inject your service components into wicket using the wicket-spring or wicket-guice integration. If you do it that way, the choice of ORM is totally up to you. Here is a reference of ORM technologies supported natively by spring. (I'd go with JPA, as it's an open standard)
主观。但是,是的,Hibernate 是不错的选择,它很容易与 Wicket 集成。或者,您可以考虑 JPA。
最爱。组合:Wicket-Spring-Hibernate
Subjective. But yes, Hibernate is good choice it is very easy to integrate it with Wicket. Alternatively, you can for example think of JPA.
Fav. combo : Wicket-Spring-Hibernate
看看 iBatis / MyBatis - 学习 Hibernate 更简单一些。但不是真正的 ORM——而是 SQL <-> DTO 映射器。
Have a look at iBatis / MyBatis - it's a bit simpler to learn that Hibernate. But not true ORM - rather a SQL <-> DTO mapper.
由于一些延迟加载和关系相关的问题,我建议使用 EclipseLink 而不是 Hibernate。集成基本相同。
有了额外的访问层,实际上任何 ORM 都应该可以轻松插入。
I would suggest EclipseLink over Hibernate because of some lazy-loading and relations related problems. Integration is basically the same.
With additional access layer actually any ORM should be easily pluggable.