Hi!
I am trying to generate a method for each named query of each JPA entity.
To do so, I have to get each query's parameter types, so that I can use them as arguments for my method.
Quote:
Ejb3Configuration cfg = new Ejb3Configuration();
cfg.configure("default", null);
Map namedQueries = cfg.getNamedQueries();
The namedQueries map contains NamedQueryDefinition objects for each named query. However, the parameterTypes property (that should contain the name and type for each parameter) is null.
Is there any other way of retrieving all named queries and their parameters (along with their respective types)?
Thank you.
Regards,
Nuno Guerreiro