I'm using JPA and creating an entity to save a date within the database. So far so good, the problem is that I need to display the bank information according to the month of my date
. Does it have a way of when to ask JPQL to return only with the selected month? Example:
public void exemplo(Date data){
String jpql = "select t from time t where t.data.getmes() = cData"
Query query = em.createQuery(jpql);
query.setParameter("cData", data);
}