Hi all
can i use @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)on
ordinary field(non key fileld ,i.e. without @PrimaryKey)

that's because my domain class in a child in parent-child relationship
so its primary key cannot be of type Long , but i still wanna a unique
long number generated for me upon  entity save
so can i use @Persistent(valueStrategy =
IdGeneratorStrategy.IDENTITY)Long uniqueNumber;
and it work as it works in conjugation with @PrimaryKey

i wanna know if this is a supported feature not a hack, so please JDO
experts clarify this

thanks in advance
Joe

-- 
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 google-appengine-j...@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