Hi there,
 
We already have a persistent class with lots of instances in the datastore. 
This class has now an attribute set as gae.parent-pk. We now need to change 
the attribute that must be the gae.parent-pk.
 
Has anyone done this before? Are we to face any issue if we make this 
change? We don't make use of transactions where class is involved.
 
This is the way it is now:
 
public class MyClass {
 
 @PrimaryKey
 @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) 
 @Extension(vendorName="datanucleus", key="gae.encoded-pk", value="true") 
 private String key;
 
 @Persistent 
 @Extension(vendorName="datanucleus", key="gae.parent-pk", value="true")  
 private String accountProfileKey;
 
 @Persistent
 private String accountKey;
 
 @Persistent
 private String profileTableId;
......
 
This is the way we need to be:
 
 public class MyClass {
 
 @PrimaryKey
 @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) 
 @Extension(vendorName="datanucleus", key="gae.encoded-pk", value="true") 
 private String key;
 
 @Persistent 
 private String accountProfileKey;
 
 @Persistent
 @Extension(vendorName="datanucleus", key="gae.parent-pk", value="true")  
 private String accountKey;
 
 @Persistent
 private String profileTableId;
......
 
Many thanks in advanced,
Luis

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/hjjrGr6f_bcJ.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to