Have you seen datanucleus-appengine issue 28 (Cannot add child to existing one-to-many if parent has Long or unencoded String pk)? Might this issue relate to your problem?
I encountered this in the past and had to change the data type of the child persistent entity primary key to work around this issue. On Oct 9, 7:59 pm, lisandrodc <[email protected]> wrote: > Hi! I have a problem with persist a child class, using inheritance. > When I call the method "makePersistent", in the datastore, the object > doesn't save. > It does not throw any exception. > The code at makePersistent and the classes are: > > public void crearRegFechaUsuario(Usuario usu,RegFechaUsuario > rFechUsuario) { > > Transaction tx = pm.currentTransaction(); > try { > tx.begin(); > //rFechUsuario is the child class at persist > pm.makePersistent(rFechUsuario); > tx.commit(); > } finally { > pm.close(); > if (tx.isActive()) { > tx.rollback(); > } > } > > } > > @Inheritance(strategy = InheritanceStrategy.SUBCLASS_TABLE) > public abstract class Fecha { > ... > > @PersistenceCapable(identityType = > IdentityType.APPLICATION,detachable="true") > //The class with problem at persist > public class RegFechaUsuario extends Fecha { > > @Persistent > ....... -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
