Hi Sujit,

Thank you so much for your input.  You have veen very helpful.


Thanks,
Susan G. Lee





Sujit Pal <[EMAIL PROTECTED]> 
03/29/2006 03:58 PM
Please respond to
user@drools.codehaus.org


To
user@drools.codehaus.org
cc

Subject
Re: [drools-user] Storing rules in a database






Hi Susan,

I think you may be referring to the article I submitted. An approach
using stored procedures should be similar, all the hibernate code does
is to persist and retrieve the object mapping to and from the database,
so if you had stored procedures to do the same mappings, then that would
work too. The only thing to note is that not all databases support
stored procedures, and for those that do, stored procedure dialects are
different enough so the solution would be tied to a single database. So
a solution with stored procedures would not be a generic one.

Michael Neale has written a repository api for Drools3 which allows you
to plug in your repository implementation. The database implementation
is based on hibernate, but it should be easy enough to replace the
mappings with stored procedures, if you really wanted to go that route.

HTH
-sujit

On Wed, 2006-03-29 at 11:46, Susan G Lee wrote:
> Hi,
> 
> I found an example of storing rules in a database using hibernate 
> technology.  Is there another example of using it w/ stored procedures 
> calling the database to generate the rules? or is hibernate the only 
way?
> 
> 
> 
> Thanks,
> Susan G. Lee


Reply via email to