Does Google App Engine supports JDO data objects with "Object" fields? -
I have an "object" field in one of my JDO classes, like this:
@ qualified to Preshrens Cap (IdentityType = IdentityType.APPLICATION, detachable = "true") class Foo {... @Persistent @Value (type = {java.lang.Boolean.class, java.lang.String.class}) object bar ; ...}
When I tried to use this field I got the following exception:
field "Foo Bar" to a reference type (interface / object) But no implementation class of "Java.lang.Object" has been found! Org.datanucleus.exceptions.NucleusUserException: Field "Foo.bar" is declared as a reference type (interface / object), but "java.lan g.Object" does not have any implementation class! At org.datanucleus.metadata.MetaDataUtils.getImplementationNamesForRaferenceField (MetaDataUtils.java) 315 ORG.datanucleus.store.mapped.mapping.ReferenceMapping.createPerImplementationColumnsForReferenceField (re-ferriage mapping.jakui779) at org.datanucleus.store.mapped.mapping. ReferenceMapping.prepareDatastoreMapping (ReferenceMapping.java:205) org.datanucleus.store.mapped.mapping.ReferenceMapping.initialize (ReferenceMapping.java:114) on org.datanucleus.store.mapped.mapping.MappingFactory.createMapping (on MappingFactory.java: 97) on org.datanucleus.store.appengine on org.datanucleus.store.mapped.mapping.AbstractMappingManager.getMapping (AbstractMappingManager.java:248) org.datanucleus.store.appengine.DatastoreTable.initializeNonPK (on DatastoreTable.java:301) DatastoreTable.buildMapping at org.datanucleus.store.appengine.DatastoreManager.newStoreData (DatastoreTable.java:276) org.datanucl at Ez.store.AbstractStoreManager.addClasses (AbstractStoreManager.java:788) org. on datanucleus.store.AbstractStoreManager.addClass (on org.datanucleus.store.mapped.MappedStoreManager.getDatastoreClass (AdStoreManager.java:759) Matstormanejr. Java358) org.datanucleus.store.appe Ngine.DatastoreManager.getDatastoreClass org.datanucleus.store.appengine.query.DatastoreQuery.performExecute (DatastoreManager.java lesson5) at org.datanucleus.store.appengine.query on .JDOQLQuery.performExecute org. on datanucleus.store.query.Query.executeQuery (Query.java:1489) (JDOQLQuery.java:84) org.datanucleus.store on org.datanucleus.store.query.Query.executeWithArray (Query.java:1371). Query.Query.execute at org.datanucleus.jdo.JDOQuery.execute (Query.java:1344) (JDOQuery.java:221)
If anyone does, then supports Google App Engine Know "@Value" annotation and / or how to get this problem?
Was Nks!
Thank you! Instead of using @Value, I should do it instead:
@ Perspectives Capbble (identity type = identity type .APILAC, detetable = "true") square fu {... @idententent (type = {Java.lang boolean.clash, java.lang.String.class}) object bar; ...}
Comments
Post a Comment