SyntaxFix
Write A Post
Hire A Developer
Questions
This solution is from Beginning Hibernate book:
Query<User> query = session.createQuery("from User u where u.scn=:scn", User.class); query.setParameter("scn", scn); User user = query.uniqueResult();