<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
Take&nbsp;out the entry&nbsp;of this table for hbm, instantiate this object manually, use the setters and run the rules. My guess is, it should run perfect. <BR>
Send the hbm to the group, that would help.&nbsp;Configuration of&nbsp;this id in hbm is the source of problem.<BR><BR>&gt; Date: Fri, 22 Feb 2008 10:39:17 +0100<BR>&gt; From: krokodylowy3@wp.pl<BR>&gt; To: rules-users@lists.jboss.org<BR>&gt; Subject: [rules-users] Re: Working with Hibernate objects<BR>&gt; <BR>&gt; &gt;I don't see your test class as a peristent class. Unless you add<BR>&gt; &gt;hibernate annotations it won't become as such.<BR>&gt; <BR>&gt; That's strange behaviour. I got working application - hibernate<BR>&gt; objects with hbm configuration files. All run's except rule.<BR>&gt; <BR>&gt; Getters and setters in hibernate objects are public so the main<BR>&gt; problem is in Rule compiler. Is any workaround? Users may not wish to<BR>&gt; regenerate hbm files to annotations.<BR>&gt; <BR>&gt; org.drools.rule.InvalidRulePackage: Rule Compilation error : [Rule<BR>&gt; name=Init message, agendaGroup=MAIN, salience=0, no-loop=true]<BR>&gt; com/sample/Rule_Init_message_0.java (9:430) : The field testTable.id<BR>&gt; is not visible<BR>&gt; at org.drools.rule.Package.checkValidity(Package.java:424)<BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; ----------------------------------------------------<BR>&gt; Cia�o kobiety dojrza�ej wg. Tomasz Sobieraja. <BR>&gt; Zobacz galeri� fotografii. <BR>&gt; Kliknij: http://klik.wp.pl/?adr=http%3A%2F%2Fcorto.www.wp.pl%2Fas%2Fkobieta-dojrzala.html&amp;sid=232<BR>&gt; <BR>&gt; <BR>&gt; _______________________________________________<BR>&gt; rules-users mailing list<BR>&gt; rules-users@lists.jboss.org<BR>&gt; https://lists.jboss.org/mailman/listinfo/rules-users<BR><BR><br /><hr />It's about getting married. Click here! <a href='http://ss1.richmedia.in/recurl.asp?pid=201' target='_new'>Try it!</a></body>
</html>