Community
Participate
Working Groups
if you create a method in your class called createQuery give it a simple string parameter, and then call it with just a string value (like "getBySalary"), you will get this problem, initially i didn't understand what's going on, untill i figured out that it's exacltly like the EntityManagers' createQuery method. it simply thinks the paramters is a query clause this is why i think it's dali problem and not a Hibernate tools problem.
This does not sound like an issue with Dali, is there a stack trace you could attach?
no there isn't, it's not an exception,
Where exactly do you see this "node to traverse cannot be null" message? What are you doing when this message occurs?
(In reply to comment #3) > Where exactly do you see this "node to traverse cannot be null" message? What > are you doing when this message occurs? i'm extending an AbstractDao class which contains an EntityManager this class has createQuery method which calls the entity Manager's createQuery and returns the TypedQuery the subclass call this method with the name of the named query i want, however just by calling this method, generates that error.
I think you are either trying to file a bug against the JPA specification, or the Hibernate implementation of that specification. In either case, this is a "run-time" issue, not a Dali Java Persistence Tools issue. I recommend taking this issue to the Hibernate forums, or perhaps enter a bug against Hibernate if you think this is a bug.