Hi Tristan

Sorry I didn't answer earlier, I got sick and I am trying to catch up
with other things at the moment.

Thanks for your answer and your example. I will take up on your offer
some time soon.

Cheers,

Fred

On Tue, Apr 13, 2010 at 01:03, Tristan <[email protected]> wrote:
> I should be able to help... what are you trying to do?
>
> to use a predefined type that is storable in the datastore (http://
> code.google.com/appengine/docs/java/datastore/
> dataclasses.html#Core_Value_Types)
>
> all you do is cast that property  so..
>
> Entity entity = new Entity("myKind");
> Email myEmail = new Email("[email protected]");
> entity.setProperty("emailProperty", myEmail);
> Key key = datastore.put(entity);
>
> to get it back just cast it
>
> Entity storedEntity = datastore.get(key);
> Email storedEmail = (Email) storedEntity.getProperty("emailProperty");
>
> they also appear to implement Comparable interface, so you can compare
> these things...
>
> is there anything more specific you need?
>
> Tristan
>
> On Apr 9, 4:31 am, Fred Janon <[email protected]> wrote:
>> Hi,
>>
>> Are there any examples on how to use the low level data store API,
>> other than the short example on the Javadoc? Especially on how to use
>> the predefined types like email, GeoPt, address... Is the source code
>> available for these objects? I am interested in the compare method for
>> these objects.
>>
>> Thanks
>>
>> Fred
>
> --
> 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.
>
>

-- 
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