Last active
December 26, 2015 01:19
-
-
Save gscheibel/7070143 to your computer and use it in GitHub Desktop.
OGM JPQL query with object comparison
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
SolutionType type = em.find( SolutionType.class, typeId ); | |
Query query = getQuery( "FROM DatabaseVendor d WHERE d.solutionType = :type" ); | |
query.setParameter( "type", type ); | |
List<DatabaseVendor> list = query.list(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment