Best Practice of a date-only query?

52 views
Skip to first unread message

Inacio

unread,
Nov 2, 2010, 9:56:03 AM11/2/10
to objectify-appengine
What is the best practice to enable date-only queries?

Should I create an alternative attribute to store a String like
yyyyMMdd and control its persistence by @PrePersit / @PreUpdate?

Or is there a way to query ignoring time information of a Date
attribute?

I wanna give date queries to my users avoing timezone, performance and
scalability issues.

Thanks a lot
Inacio

Jeff Schnitzer

unread,
Nov 2, 2010, 2:13:51 PM11/2/10
to objectify...@googlegroups.com
You should be able to use java.sql.Date.

Jeff

Reply all
Reply to author
Forward
0 new messages