私はこのデータモデルを持っています
public class CustomerModel{
@Column
@Type(type="org.joda.time.contrib.hibernate.PersistentDateTime")
private DateTime membershipDate;
//Other properties and getters
}
そして、次のレポ
public interface CustomerRepo extends Repository<CustomerModel, Long>{}
やりたいことは。特定の日付 (2013 年 8 月 1 日に参加したメンバー) のすべてのユーザーを取得しますが、私の DB では、membershipDate に時間が含まれているという問題があります。時間を無視して、特定の日付のすべてのユーザーを取得するにはどうすればよいですか?