Hibernate scalar query select into non-JPA Entity Java Objects

Constructor Expression

Query query = session.createQuery(
"new Foo(prop1, propN)
FROM FOO f
WHERE f.whatever = whatever");

Collection<Foo> foos = query.list();

Comments

Popular posts from this blog

Sites, Newsletters, and Blogs

Oracle JDBC ReadTimeout QueryTimeout

Locks held on Oracle for hours after sessions abnormally terminated by node failure