|
Hello everyone,
I am writing a client for a RMI service that has basically one function: I give it a detached criteria and it returns me the corresponding objects.
I need to allow my users to write their own queries so I thought it would be nice if they could write them in a XML file that my code would use. I could write my own schema for detached criteria and then use JAXB to do the binding but I would be surprised if there isn't already a library somewhere to do that. Does someone know any?
By the way I know about named queries but as far as I can tell, I need to have access to the Hibernate session to load a named query? In my case it's all detached, the Hibernate is session is on the server side.
Thanks in advance for your help,
Tom
|