You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by Sy...@swisscom.com on 2003/03/20 14:02:18 UTC

Is there a way to store a Criteria object in database

Hello,

In my project I have Group objects with attributes.
One of the attribute is "criteria".
This attribute is in fact a SQL query.

class Group
-----------
String groupName;
String groupType;
String criteria;


For the moment I store this SQL query in a String.

I think that it could be possible to use Query objects to store my query in database.
Is it possible?
How can I do that?
How can I store a Query object in database?

Is anyone has an experience?

Thanks
Sylvain