Created
September 17, 2012 04:13
-
-
Save timoteoponce/3735493 to your computer and use it in GitHub Desktop.
JPA entityManager
This file contains 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
User user = (User)entityManager.createQuery( "SELECT t FROM User t WHERE t.name like :param1" ).setParam("param1",parameter).singleResult(); | |
doSomething( user ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment