Best Practice of a date-only query?

53 visualitzacions
Ves al primer missatge no llegit

Inacio

no llegida,
2 de nov. 2010, 9:56:032/11/10
a 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

no llegida,
2 de nov. 2010, 14:13:512/11/10
a objectify...@googlegroups.com
You should be able to use java.sql.Date.

Jeff

Respon a tots
Respon a l'autor
Reenvia
0 missatges nous