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
Product Specialist
Viale Bruno Buozzi, 19 - 00197 Roma (Italy)
tel: +39 06 4543 3540
fax: +39 06 4543 3587
mobile: +39 393 7195 164
mail: [email protected]
web: http://www.eris4.com
skype: eris4_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
-~----------~----~----~----~------~----~------~--~---

Reply via email to