Does anyone have an example of using a Key as Encoded String working with GAEJPADataSource. Here's what a Key as Encoded String is http://code.google.com/intl/en/appen...data.html#Keys
I want to do something like (and I've tried adding a gae.encoded-pk field in addition to the below, but I'm not sure how to connect the datasource then - do I reference the encodedKey or the longId?)
The specific error I am getting is
I've checked out the writeup on http://www.smartclient.com/smartgwte...tegration.html and I think I've checked all the examples.
Did I miss an example of this working, or does it not work?
Thanks in advance for any help.
I want to do something like (and I've tried adding a gae.encoded-pk field in addition to the below, but I'm not sure how to connect the datasource then - do I reference the encodedKey or the longId?)
Code:
@Entity public class MyClass{ @Id @Column(nullable = false) @GeneratedValue(strategy = GenerationType.IDENTITY) @Extension(vendorName = "datanucleus", key = "gae.pk-id", value = "true") private Long longId; }
Error in meta-data for com.example.MyClass.longId: A field with the "gae.pk-id" extension must not be the primary key.
Did I miss an example of this working, or does it not work?
Thanks in advance for any help.
Comment