KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
In JPA, the query is: Query q = entityManager.createQuery("select o from Product o WHERE o.category = :value"); q.setParameter("category", category); How can I set category to any category in JPA? So if the null category passed, I simple ignore the category parameter, select all products.
Tags (comma-separated)
Save Edits
Cancel