yes... the problem is that you don&#39;t need that query. <br>I don&#39;t know why I include it.. Do you need it for some reason?<br>I will test it asap and get back to you..<br><br><div class="gmail_quote">On Thu, Oct 8, 2009 at 11:46 AM, Jesper S. Knudsen <span dir="ltr">&lt;<a href="mailto:jsk@orwtech.dk">jsk@orwtech.dk</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Pardeep<br>
<br>
I think you are using the wrong syntax in your QL<br>
Should it not be:<br>
<br>
select object(v) from VariableInstanceInfo as v where<br>
<a href="http://v.processInstanceInfo.id" target="_blank">v.processInstanceInfo.id</a> = :processId<br>
<br>
like in ejbql?<br>
<br>
Best regards<br>
<br>
Jesper<br>
<br>
<br>
<a href="mailto:Pardeep.Ruhil@lntinfotech.com">Pardeep.Ruhil@lntinfotech.com</a> skrev:<br>
<div><div></div><div class="h5">&gt;<br>
&gt; Hi Mauricio,<br>
&gt; Thanks for your reply.<br>
&gt; When I try to run the demo project with configuration  to work with<br>
Mysql, I got this exception when I uncommented the  the named-query in<br>
orm.xml<br>
&gt; &lt;/query&gt;<br>
&gt; select<br>
&gt;     v<br>
&gt; from<br>
&gt;     VariableInstanceInfo v<br>
&gt; where<br>
&gt;     <a href="http://v.processInstanceInfo.id" target="_blank">v.processInstanceInfo.id</a> = :processId<br>
&gt;           &lt;/query&gt;<br>
&gt;<br>
&gt; SEVERE: Error in named query: VariableInstancesInfoByProcessId<br>
&gt; org.hibernate.QueryException: could not resolve property:<br>
processInstanceInfo of:<br>
org.drools.persistence.processinstance.variabletypes.VariableInstanceInfo<br>
[select v from<br>
org.drools.persistence.processinstance.variabletypes.VariableInstanceInfo<br>
v where <a href="http://v.processInstanceInfo.id" target="_blank">v.processInstanceInfo.id</a> = :processId]<br>
&gt;         at<br>
org.hibernate.persister.entity.AbstractPropertyMapping.propertyException(AbstractPropertyMapping.java:67)<br>
&gt;         at<br>
org.hibernate.persister.entity.AbstractPropertyMapping.toType(AbstractPropertyMapping.java:61)<br>
&gt;         at<br>
org.hibernate.persister.entity.AbstractEntityPersister.toType(AbstractEntityPersister.java:1385)<br>
&gt;         at<br>
org.hibernate.hql.ast.tree.FromElementType.getPropertyType(FromElementType.java:302)<br>
&gt;<br>
&gt; Please help me resolve to this exception.<br>
&gt; Am i doing something wrong?<br>
&gt;<br>
&gt; Thanks &amp; Regards<br>
&gt;<br>
&gt; Pardeep Ruhil<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; if you take a look at this post:<br>
&gt; <a href="http://blog.athico.com/2009/09/drools-flow-variable-persistence.html" target="_blank">http://blog.athico.com/2009/09/drools-flow-variable-persistence.html</a><br>
&gt;<br>
&gt; you will see that there is a demo project with the configuration to work<br>
&gt; with MySQL.<br>
&gt; Greetings.<br>
&gt;<br>
&gt; 2009/10/7 &lt;<a href="mailto:Pardeep.Ruhil@lntinfotech.com">Pardeep.Ruhil@lntinfotech.com</a>&gt;<br>
&gt;<br>
&gt; &gt;<br>
&gt; &gt; Hi,<br>
&gt; &gt; I have doubt regarding persistence in Drools.<br>
&gt; &gt; I read the documentation of persistence in Drools Flow and got to know<br>
that<br>
&gt; &gt; it uses hibernate with H2 database as default.<br>
&gt; &gt; My doubt is if I want to use Mysql database, then I want to know which<br>
are<br>
&gt; &gt; the tables that I need to create in the database or<br>
&gt; &gt; Is their any code written which automatically creates the tables in the<br>
&gt; &gt; schema in Mysql database.<br>
&gt; &gt;<br>
&gt; &gt; Also is their any document present for configuring Mysql database.<br>
&gt; &gt; Please help me to get through the situation.<br>
&gt; &gt;<br>
&gt; &gt; Thanks &amp; Regards<br>
&gt; &gt;<br>
&gt; &gt; Pardeep Ruhil<br>
&gt; &gt; _________________<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; ______________________________________________________________________<br>
&gt;<br>
&gt;<br>
</div></div><div><div></div><div class="h5">&gt; _______________________________________________<br>
&gt; rules-users mailing list<br>
&gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br>
<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br> - <a href="http://salaboy.wordpress.com">http://salaboy.wordpress.com</a><br> - <a href="http://www.jbug.com.ar">http://www.jbug.com.ar</a><br> - Salatino &quot;Salaboy&quot; Mauricio -<br>