postgresql « Field « JPA Q&A

1. How to perform a on an integer field

I have an integer field in the DB (Postgresql) and my hibernate mapping file that I want to use in a like operation (e.g.,'123')). The database does not support like ...

2. ResultTransformer with createSQLQuery forces no camelCase in entity fields

i have an sql query as follows:

List<Employee> employees = getCurrentSession()