开发者

GAE Datastore Java data type for date/time values

开发者 https://www.devze.com 2023-01-06 10:07 出处:网络
Both java.sql.Date and java.util.Date return the following when trying to persist them in the datastore.

Both java.sql.Date and java.util.Date return the following when trying to persist them in the datastore.

javax.jdo.JDOUserException: Attempt to handle persisten开发者_运维技巧ce for object using datastore-identity yet StoreManager for this datastore doesn't support that identity type

What data types do you use for date/time values?


Are you sure the problem is with the date field? It sounds more like your object is not set up right to work in GAE - do you have a primary key field set up on your entity? Is your code top secret or can you show us your entity code?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号