|
I'm using these annotations, but it's not working. ----------------------- @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) @Extensions({ @Extension(vendorName="datanucleus", key="gae.encoded-pk", value="true"), @Extension(vendorName="datanucleus", key="strategy-when-notnull ", value="false") }) protected String encodedKey; @Persistent @Extension(vendorName="datanucleus", key="gae.pk-name", value="true") private String id; ----------------------- I don't know if something else is needed. datanucleus wrote: No idea if GAE/J's plugin supports this extension property but we provide it in DataNucleus as a whole to only impose the "value strategy" for the field when it is null (i.e not already set by the user). Add this to the PK field that is being set@Extension(vendorName="datanucleus", key="strategy-when-notnull ", value="false") --
Patrizio Munzi --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~--- |
- [appengine-java] Problems with entity groups in transaction... Patrizio Munzi
- [appengine-java] Re: Problems with entity groups in tr... Patrizio Munzi
- [appengine-java] Re: Problems with entity groups i... datanucleus
- [appengine-java] Re: Problems with entity grou... Patrizio Munzi
- [appengine-java] Re: Problems with entity grou... John Patterson
- [appengine-java] Re: Problems with entity ... datanucleus
- [appengine-java] Re: Problems with en... Patrizio Munzi
- [appengine-java] Re: Problems with en... John Patterson
- [appengine-java] Re: Problems with entity groups i... Rusty Wright
- [appengine-java] Re: Problems with entity grou... Patrizio Munzi
