It can be used like this:
Query query = manager .createQuery("SELECT c FROM CITIES c WHERE c.founded = CURRENT_DATE"); for (Object city : query.getResultList()) { System.out.println(city); }
... where the temporary type is set:
@Column(name = "FOUNDED") @Temporal(TemporalType.DATE) private Date founded = new Date();
Not a great example, but you get the idea. I am using Eclipselink 1.1.2
Mcdowell
source share