Skip to content

GWT Integration Hibernate Core

apetrelli edited this page Apr 26, 2013 · 1 revision

The gwt-integration-hibernate-core helps to deal with problems regarding GWT and Hibernate (directly or via JPA) working together.

The problems

The solutions

When Hibernate creates proxies, server-side validation fails

The problem: Sometimes Hibernate creates proxies (usually by using Javassist) to help to deal with lazily-loaded member fields. When this happens, the automatic validation of GWT with RequestFactory fails miserably.

The solution: Let your locator extend DeproxierDeletableLocator

The DeproxierDeletableLocator.find method automatically deproxies entities in case they are proxies.