Skip to content

Instantly share code, notes, and snippets.

@gscheibel
Last active December 26, 2015 01:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gscheibel/7070143 to your computer and use it in GitHub Desktop.
Save gscheibel/7070143 to your computer and use it in GitHub Desktop.
OGM JPQL query with object comparison
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