Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JBoss User Help »

[jboss-user] [JBoss Seam] - Drools (JBoss Rules) Hibernate Query
 and EntityManager

scott.stark@jboss.org

2007-07-19


Drools rules can use Hibernate queries to perform checks against the database. They look something like this:
$cheese : Cheese() from session.createQuery("select cheese from Products where ...").setProperties( {"key1" => "value1", "key2" => "value2" }).list()
How does the session get passed to Drools and is it possible to pass Seam's EntityManager in a similar fashion? Has anyone used this feature of Drools with Seam?

Thanks,

Damian.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4065804#4065804

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4065804
_______________________________________________
jboss-user mailing list
jboss-user@(protected)
https://lists.jboss.org/mailman/listinfo/jboss-user
©2008 junlu.com - Jax Systems, LLC, U.S.A.