postgresql « Field « JPA Q&A





1. How to perform a Restrictions.like on an integer field    stackoverflow.com

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. Restrictions.like(Bean.fieldname,'123')). The database does not support like ...

2. ResultTransformer with createSQLQuery forces no camelCase in entity fields    stackoverflow.com

i have an sql query as follows:

List<Employee> employees = getCurrentSession()
                    .createSQLQuery(
  ...