qickrooms / objectify-appengine

Automatically exported from code.google.com/p/objectify-appengine
MIT License
0 stars 0 forks source link

Cannot declare List of Ref<> or Key<> ( one-to-many relationship ), got an error from appengine. -Parameterized type not supported- #191

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1.Declare one list of ref ( one to many relationship ), or one list of keys. 
Example: List<Ref<Answer>> answers = new ArrayList<Ref<Answer>>(); ( Answer is 
an Entity ).

2.Try to compile app engine proyect.

3.You'll got this error:

There was a problem generating the API metadata for your Cloud Endpoints 
classes: java.lang.IllegalArgumentException?: Parameterized type 
com.googlecode.objectify.Ref<com.lolita.Answer> not supported.  

Google App Engine Cloud Endpoints Problem Marker

What is the expected output? What do you see instead?
Expected output is compiling and works.

What version of the product are you using? On what operating system?
Objetify4.0rc2 and Guava 16.0 on Appengine 1.8.9.
Eclipse 4.2, Windows 8

Please provide any additional information below.

Original issue reported on code.google.com by forl...@gmail.com on 3 Feb 2014 at 7:52

GoogleCodeExporter commented 9 years ago
This is an issue with Cloud Endpoints, not Objectify. CE appears to need some 
sort of custom serializer for unknown classes, like GWT. If you can figure out 
what is necessary, we might consider including it in the Objectify source.

Original comment by lhori...@gmail.com on 21 Feb 2014 at 12:34