KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm using Hibernate 3.5.4-Final. I want to pass an entity as a parameter of a named query, and then access a persisted property of that named parameter in that query. I want to do this: @NamedQuery(name = "hello", query = "SELECT p FROM WorkPackage p WHERE p IN (:workPackage).relatedWorkflows") The problem is near the end of the query, in the (:workPackage).relatedWorkflows which causes Hibernate to throw a deploy-time QuerySyntaxException. Remove the parentheses doesn't help; I left them in for clarity. Is there any way around this, or am I going to have to do this programmatically?
Tags (comma-separated)
Save Edits
Cancel