IT is Fun

December 6, 2007

Hibernate – Restrictions cannot be applied to long

Filed under: Hibernate — themamakcorner @ 9:27 am

To solve this, simply add new Long…

criteria.add(Restrictions.eq(“departmentId”,new Long(departmentId)));

Blog at WordPress.com.