google app engine - Objectify - @Embedded Error saving XXX is not a supported property type -
When trying to save an entity with an embedded class, the object throws the exception (ObjectTest Dummy is registered):
com.googlecode.objectify.SaveException: test.ObjectifyTestDummy@2485b739: Internal: Error in saving the test.ObjectifyInnerTest is not a supported property type.
Import com.googlecode.objectify.annotation.Entity; Import com.googlecode.objectify.annotation.Id; Import javax.preistence.Embedded; Import javax.preistence.GeneratedValue; Import javax.preistence.GenerationType; @ Entity Public Class Objective Dummy {@Id @ javax.preistence.Id @ generatedValue (strategy = GenerationType.AUTO) Private Long ID; @ Embedded private object entry inner; Public long iid () {return id; } Public Zero Set ID (Long ID) {this.id = id; } Public ObjectifyInnerTest getInner () {Return Internal; } Public Zero Setner (ObjectifyInnerTest inside) {this.inner = inner; }}
And just:
Public class ObjectifyInnerTest {}
What's wrong?
I should be ashamed I switched the objective version to 5.0.5, but again cleaned / Did not package. It seems that the target appengine-devserver maven is not updating dependency so I was still working on version 4.x. I do not know why 4.x was not working. Everything works fine with 5.0.5
Comments
Post a Comment