Last active
October 27, 2016 21:14
-
-
Save jampajeen/9ce8876ae829efd69aaa to your computer and use it in GitHub Desktop.
Hibernate non-entity mapping
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Query query = session.createSQLQuery(sql); | |
query.setResultTransformer( Transformers.aliasToBean( Test.class) ); | |
List<Test> result = query.list(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment