Hello,
I am trying to persist a simple class and does not persist.
pm.currentTransaction().begin();
Tenant tenant = new Tenant();
tenant.setName(globalTenantName);
pm.makePersistent(tenant);
pm.currentTransaction().commit();
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Tenant {
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
@Extension(vendorName = "datanucleus", key="gae.encoded-pk",
value="true")
private String id;
@Persistent
@Extension(vendorName = "datanucleus", key="gae.pk-name", value="true")
private String name;
@Persistent private String ownerPartyKeyEncoded;
@Persistent private String organizationPartyKeyEncoded;
@Persistent private List<SecurityGroup> secGrpList = new
ArrayList<SecurityGroup>();
@Persistent private Date lastModifiedDate;
@Persistent
private String lastModifiedByPartyKey;
}
-Aswath
Here is the log....
5 Mar, 2010 1:01:34 PM org.datanucleus.ConnectionManagerImpl
allocateConnection
[java] FINE: Connection added to the pool :
org.datanucleus.store.appengine.datastoreconnectionfactoryimpl$datastoremanagedconnect...@19ae493
[java] 5 Mar, 2010 1:01:34 PM org.datanucleus.ObjectManagerImpl
performReachabilityAtCommit
[java] FINE: Performing check of objects for
"persistence-by-reachability" (commit) ...
[java] 5 Mar, 2010 1:01:34 PM org.datanucleus.ObjectManagerImpl
performReachabilityAtCommit
[java] FINE: Performing reachability algorithm on object with id
"org.datanucleus.identity.identityrefere...@1342f5b"
[java] 5 Mar, 2010 1:01:34 PM org.datanucleus.state.JDOStateManagerImpl
runReachability
[java] FINE: Object "com.veersoft.party.ten...@14a616" (id="")
lifecycle state "P_NEW" added to the list of reachables on commit.
[java] 5 Mar, 2010 1:01:34 PM
org.datanucleus.store.fieldmanager.ReachabilityFieldManager storeObjectField
[java] FINE: Performing reachability on SCO container field
"com.veersoft.party.Tenant.secGrpList"
[java] 5 Mar, 2010 1:01:34 PM
org.datanucleus.store.fieldmanager.ReachabilityFieldManager storeObjectField
[java] FINE: Performing reachability on SCO container field
"com.veersoft.party.Tenant.partys"
[java] 5 Mar, 2010 1:01:34 PM
org.datanucleus.store.fieldmanager.ReachabilityFieldManager storeObjectField
[java] FINE: Performing reachability on field
"com.veersoft.party.Tenant.lastModifiedDate" which is null
[java] 5 Mar, 2010 1:01:34 PM org.datanucleus.ObjectManagerImpl
performReachabilityAtCommit
[java] FINE: Completed check of objects for
"persistence-by-reachability" (commit).
[java] 5 Mar, 2010 1:01:34 PM org.datanucleus.state.LifeCycleState
changeState
[java] FINE: Object "com.veersoft.party.ten...@14a616"
(id="org.datanucleus.identity.identityrefere...@1342f5b") has a lifecycle
change : "P_NEW"->"HOLLOW"
--
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.