[rules-users] Hibernate proxy objects equality tests failing in Drools 5

Greg Barton greg_barton at yahoo.com
Mon May 4 13:00:56 EDT 2009


I'm using non-proxied hibernate backed POJOs in drools with no problems. (THe pojos aer generaed by hbm2java.)  I'll try configuring for proxies to see what happens.


--- On Mon, 5/4/09, Gustavo Maia Neto <guto at guto.net> wrote:

> From: Gustavo Maia Neto <guto at guto.net>
> Subject: Re: [rules-users] Hibernate proxy objects equality tests failing in Drools 5
> To: "Rules Users List" <rules-users at lists.jboss.org>
> Date: Monday, May 4, 2009, 11:28 AM
> on this afternoon I will migrate to Drools 5 CR1,
> unfortunelly i'm not
> sure if it will solve my problem.
> 
> Does anyone else uses Drools with objects that came from an
> hibernate,
> (proxies)?
> 
> Also, i'm not using any proxy to fetch lazy data inside
> my Drools
> stateful session.
> 
> thanks
> 
> Guto escreveu:
> > I was following that subject on markmail, and them
> I've enterred the
> > user-group (so subject and body are coppied from
> them). I've got the
> > exactly same problem. When I use the rules with
> objects the came from the
> > database (thru JPA hibernate provider), thouse rules
> never match. When I
> > do the same from Pojos hand made for unit test, it
> work.
> >
> > I don't know what really happen, but i'm sure
> that it is an equality test
> > falling 'cause of the hibernate proxys.
> >
> > I don't get also any kind of error or exception,
> since it ALL WORK. Just
> > the rule isn't be acomplished.
> >
> > I'm using EJB3 + JPA (hibernate provider) and
> Drools 4 GA;
> >
> > thanks in advance for any help
> >   
> 
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users


      



More information about the rules-users mailing list