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