-->
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: Expose Criteria query building over Restful API
PostPosted: Wed Nov 14, 2012 12:17 pm 
Regular
Regular

Joined: Tue Mar 22, 2005 2:27 am
Posts: 62
Hi All,

I want to allow clients to safely pass in arbitrary where clause filters which I could append to a Criteria query.
I would use/enable filters on the Session so that clients can't break out of visibility enforced on that level.

Could I perhaps have clients pass in a where clause fragment in HQL and somehow translate that into a Criterion object to append to my Criteria query?
Is there a way to take an HQL where clause fragment and build Criteria query expressions from them?

Is this possible, or am I approaching this the wrong way?
How does one expose Criterion building over a JSON/XML in a generic, reusable way?

Thanks,

Frank Grimes


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.