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: Persist, Retrieve and Edit DetachedCriteria
PostPosted: Mon Sep 10, 2007 10:50 am 
Newbie

Joined: Mon Sep 10, 2007 10:01 am
Posts: 2
We've developed ad-hoc query for our application using DetachedCriteria and we'd like to now support saving and editing those criteria later.

The obvious approach would be to persist the various conditions that the user has selected ("FirstName", "Equals", "John" and "Age", "GreaterThan", 18...) but before we go to far, we wanted to see if the DetachedCriteria we've build can be used instead.

I know that DetachedCriteria can be serialized, but what I've been unable to figure out is how to later enumerate over the expressions, display them in the UI and support the user changing and editing those expressions.

Does anyone have any advice on how feasible this is?


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.