Skip to content

Instantly share code, notes, and snippets.

@gmoore
Created October 4, 2010 18:00
Show Gist options
  • Save gmoore/610151 to your computer and use it in GitHub Desktop.
Save gmoore/610151 to your computer and use it in GitHub Desktop.
ValueType vt = pf.getValueType();
TicketProp prop = vt.newTicketProp();
prop.setValue(value);
queryString = "FROM " + prop.getClass().getName() + " ticketProp WHERE ticketProp.propField.name=:fieldName AND ticketProp.value" + condition + ":value";
query = em.createQuery(queryString);
query.setParameter("value", prop.getValue());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment