Groups
Conversations
All groups and messages
Send feedback to Google
Help
Training
Sign in
Groups
objectify-appengine
Conversations
About
Groups keyboard shortcuts have been updated
Dismiss
See shortcuts
Best Practice of a date-only query?
53 views
Skip to first unread message
Inacio
unread,
Nov 2, 2010, 9:56:03 AM
11/2/10
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 PM
11/2/10
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to objectify...@googlegroups.com
You should be able to use java.sql.Date.
Jeff
Reply all
Reply to author
Forward
0 new messages