<br><font size=2 face="Trebuchet MS">Hi Mauricio,</font>
<br><font size=2 face="Trebuchet MS">Thanks for your reply. </font>
<br><font size=2 face="Trebuchet MS">When I try to run the demo project
with configuration &nbsp;to work with Mysql, I got this exception when
I uncommented the &nbsp;the named-query in orm.xml</font>
<br><font size=2 color=#008080 face="Courier New">&lt;/</font><font size=2 color=#3f8080 face="Courier New">query</font><font size=2 color=#008080 face="Courier New">&gt;</font>
<br><font size=2 face="Courier New">select</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; v</font>
<br><font size=2 face="Courier New">from</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; VariableInstanceInfo
v</font>
<br><font size=2 face="Courier New">where</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; v.processInstanceInfo.id
= :processId</font>
<br><font size=2 face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
</font><font size=2 color=#008080 face="Courier New">&lt;/</font><font size=2 color=#3f8080 face="Courier New">query</font><font size=2 color=#008080 face="Courier New">&gt;</font>
<br>
<br><font size=2 color=red face="Courier New">SEVERE: Error in named query:
VariableInstancesInfoByProcessId</font>
<br><font size=2 color=#000080 face="Courier New"><u>org.hibernate.QueryException</u></font><font size=2 color=red face="Courier New">:
could not resolve property: processInstanceInfo of: org.drools.persistence.processinstance.variabletypes.VariableInstanceInfo
[select v from org.drools.persistence.processinstance.variabletypes.VariableInstanceInfo
v where v.processInstanceInfo.id = :processId]</font>
<br><font size=2 color=red face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp;
at org.hibernate.persister.entity.AbstractPropertyMapping.propertyException(</font><font size=2 color=#000080 face="Courier New"><u>AbstractPropertyMapping.java:67</u></font><font size=2 color=red face="Courier New">)</font>
<br><font size=2 color=red face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp;
at org.hibernate.persister.entity.AbstractPropertyMapping.toType(</font><font size=2 color=#000080 face="Courier New"><u>AbstractPropertyMapping.java:61</u></font><font size=2 color=red face="Courier New">)</font>
<br><font size=2 color=red face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp;
at org.hibernate.persister.entity.AbstractEntityPersister.toType(</font><font size=2 color=#000080 face="Courier New"><u>AbstractEntityPersister.java:1385</u></font><font size=2 color=red face="Courier New">)</font>
<br><font size=2 color=red face="Courier New">&nbsp; &nbsp; &nbsp; &nbsp;
at org.hibernate.hql.ast.tree.FromElementType.getPropertyType(</font><font size=2 color=#000080 face="Courier New"><u>FromElementType.java:302</u></font><font size=2 color=red face="Courier New">)</font>
<br>
<br><font size=2 face="Trebuchet MS">Please help me resolve to this exception.</font>
<br><font size=2 face="Trebuchet MS">Am i doing something wrong?</font>
<br>
<br><font size=2 face="Trebuchet MS">Thanks &amp; Regards<br>
<br>
Pardeep Ruhil</font>
<br>
<br>
<br><tt><font size=2><br>
if you take a look at this post:<br>
http://blog.athico.com/2009/09/drools-flow-variable-persistence.html<br>
<br>
you will see that there is a demo project with the configuration to work<br>
with MySQL.<br>
Greetings.<br>
<br>
2009/10/7 &lt;Pardeep.Ruhil@lntinfotech.com&gt;<br>
<br>
&gt;<br>
&gt; Hi,<br>
&gt; I have doubt regarding persistence in Drools.<br>
&gt; I read the documentation of persistence in Drools Flow and got to
know that<br>
&gt; it uses hibernate with H2 database as default.<br>
&gt; My doubt is if I want to use Mysql database, then I want to know which
are<br>
&gt; the tables that I need to create in the database or<br>
&gt; Is their any code written which automatically creates the tables in
the<br>
&gt; schema in Mysql database.<br>
&gt;<br>
&gt; Also is their any document present for configuring Mysql database.<br>
&gt; Please help me to get through the situation.<br>
&gt;<br>
&gt; Thanks &amp; Regards<br>
&gt;<br>
&gt; Pardeep Ruhil<br>
&gt; _________________</font></tt>
<br>
<br><font size=2 face="Trebuchet MS"><br>
</font>

<BR>
______________________________________________________________________<BR>