Using requestFactory 3rd party entities.

47 views
Skip to first unread message

Eric

unread,
Nov 22, 2010, 6:42:08 AM11/22/10
to Google Web Toolkit
Hello.
I'm evaluating GWT 2.1 for integration with a server side project that
uses Hibernate JPA.
This project already provides a package that contains many entities
and I wish to use them with the RequestFactory however I cannot modify
them and add the findEntity() or getId() methods to these Entities.
One way to overcome this is by subclassing these entities or maybe
writing an adapter for each one. theoretically this should work(?) but
there are quite a lot of them.
Is there another way to use the RequestFactory with these entities?
Thanks?

Thomas Broyer

unread,
Nov 22, 2010, 12:35:27 PM11/22/10
to Google Web Toolkit
Wait a few days (one week? a couple of weeks?) for the GWT 2.1.1
release. It totally refactors the server-side code for RequestFactory
and allows you to use a Locator to "find" your entities and get their
Id and version properties.
See http://code.google.com/p/google-web-toolkit/wiki/RequestFactory_2_1_1
Code review at: http://gwt-code-reviews.appspot.com/1130801/show
Reply all
Reply to author
Forward
0 new messages