I want to set Date and Character in JPA. There are special methods in Hibernate as below:
Query q = session.getNamedQuery(namedQuery);
q.setDate(0, (Date) (params[i]));
Is there anything in JPA as setCharacter()?
I know there is setParameter() with Date but I do not know how to do it with Character. I want to convert it into JPA query parameter like:
Query q = getEntityManager().createNamedQuery(namedQuery);
// How to set Date and Character in JPA ?
© 2016 Powered by mzan.com design MATCHINFO