SyntaxFix
Write A Post
Hire A Developer
Questions
I don't know if I am late or out of scope but in my opinion I could do it like:
String orgName = "anyParamValue"; Query q = em.createQuery("Select O from Organization O where O.orgName LIKE '%:orgName%'"); q.setParameter("orgName", orgName);