开发者

What's the best ORM framework for GWT applications? [closed]

Closed. This question does not meet Stack Overf开发者_开发技巧low guidelines. It is not currently accepting answers.

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.

Closed 8 years ago.

Improve this question

I am developing my graduate project, using GWT.

I use TOMCAT as the applciation server and MySQL as the database.

I want to persist all data existing in the client to the database using an ORM.

There are various ORM solutions for GWT such as Hibernate, JPA, JDO, TopLink, etc.

Do you have any suggestions?

Regards.


Hibernate is not easy to integrate with GWT because of following reasons

  • Lazy properties issue : when trying to send a partially loaded Hibernate POJO to the client-side of GWT (Javascript), the GWT compiler throws a Serialization exception because it the CGLIB generated proxy does not belong to the JRE emulation.

  • Type issue : Hibernate replaces some basic Java types with various subclassed implementation (such as java.sql.Timestamp instead of java.util.Date or PersistentList for List collections). Javascript serialization of these classes will fail, since they do not belong to the JRE emulation supported by GWT 1.4 (note : the Java SQL dates are now supported by GWT 1.5)

REF http://www.rbgrn.net/content/32-using-hibernate-with-google-web-toolkit-gwt


Hibernate for sure

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜