These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: How to read detached criteria from a file?
PostPosted: Sun Jan 18, 2009 7:19 am 
Newbie

Joined: Sun Jan 18, 2009 6:46 am
Posts: 1
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.