Spring roo and GWT

Hey, I'm trying to create an object in spring STS using scofolding GWT. The entity must be superclass and abstract. When I say roo to create an object called Person, the following results.

~.model.Person roo> entity --class ~.model.Person --mappedSuperclass --abstract Created SRC_MAIN_JAVA\tt\edu\sbcs\model\Person.java Created SRC_MAIN_JAVA\tt\edu\sbcs\model\Person_Roo_Configurable.aj Created SRC_MAIN_JAVA\tt\edu\sbcs\model\Person_Roo_Entity.aj Created SRC_MAIN_JAVA\tt\edu\sbcs\model\Person_Roo_ToString.aj Undo create SRC_MAIN_JAVA\tt\edu\sbcs\model\Person_Roo_ToString.aj Undo create SRC_MAIN_JAVA\tt\edu\sbcs\model\Person_Roo_Entity.aj Undo create SRC_MAIN_JAVA\tt\edu\sbcs\model\Person_Roo_Configurable.aj Undo create SRC_MAIN_JAVA\tt\edu\sbcs\model\Person.java GWT does not currently support inheritence in proxied objects. Please remove the 'javax.persistence.MappedSuperclass' annotation from 'tt.edu.sbcs.model.Person' in order to complete 'gwt setup'. ~.model.Person roo> 

So the question is: is there a way to create an abstract supertype in Roo and still work with GWT? Can you say "Create an abstract object but not generate GWT artifacts"?

+4
source share
1 answer

these are not “GWT artifacts”, this is a very specific GWT RequestFactory / EntityProxy structure that causes you problems, since with the inheritance of GWT 2.1.1 objects and its EntityProxies try not to run “gwt setup” than it will not generate the code associated with GWT, but you will have your own entities and more.

I know that this will lose most of the point in doing this, but this seems to be the current deal with Roo and GWT. all user interface infrastructure created by roo is based on RequestFactory

+1
source

All Articles