Of course!<br><br>I&#39;m just going to port MySQL database schema to Oracle in my project.<br><br>Give me some days only!<br><br><div class="gmail_quote">2010/11/15 Mauricio Salatino <span dir="ltr">&lt;<a href="mailto:salaboy@gmail.com">salaboy@gmail.com</a>&gt;</span><br>

<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">yes I&#39;m with Rui,<div>Changing the annotations in the code requires recompilation.. and that&#39;s not good... because when you update your drools version (ramram) you will lose that kind of changes.</div>

<div>I think that the best solution is to create xml mappings for different vendors.. Rui if you can contribute with that.. will be awesome!</div>
<div>Greetings!<br><br><div class="gmail_quote">2010/11/11 Rui Tang <span dir="ltr">&lt;<a href="http://tangrui.cn" target="_blank">tangrui.cn</a>@<a href="http://gmail.com" target="_blank">gmail.com</a>&gt;</span><div><div>

</div><div class="h5"><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi, friends<br>
<br>
I&#39;d like to add xml config to fix this this problem. Because<br>
sometimes, for different databases, we may need different mappings.<br>
E.g. we may need varchar2 in Oracle other than varchar in others.<br>
<br>
I&#39;ve read some other one&#39;s note to say that it is better to define the<br>
relationship of entities using annotation, but database mapping using<br>
config files.<br>
<br>
What&#39;s your opinion? Look forward.<br>
<br>
2010/11/11, ramram &lt;<a href="mailto:ramram858@gmail.com" target="_blank">ramram858@gmail.com</a>&gt;:<br>
<div><div></div><div>&gt;<br>
&gt; Hi Salaboy, Kris<br>
&gt;<br>
&gt; &nbsp; &nbsp;I managed to do the persistence to Oracle and that is not by creating an<br>
&gt; xml file but by adding annotations to the org.drools.task file and I mean by<br>
&gt; this:<br>
&gt;<br>
&gt; &nbsp; &nbsp;for example org.drools.task.Deadline<br>
&gt; &nbsp; &nbsp; &nbsp;- &nbsp;the column name [date] reserved word for oracle. So what I did is<br>
&gt; the following: in the java file I added the following :<br>
&gt; &nbsp; &nbsp; &nbsp;- &nbsp;@Column(name=&quot;dDate&quot;)<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; private Date &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; date;<br>
&gt; and For the classes that have long table name such as<br>
&gt; org.drools.EmailNotificationHeader<br>
&gt; @Entity<br>
&gt; @Table(name=&quot;EmailNotifHead&quot;)<br>
&gt; public class EmailNotificationHeader<br>
&gt;<br>
&gt;<br>
&gt; can you add this in the next releases to the drools task??????<br>
&gt; is the solution that I did a correct one??????<br>
&gt;<br>
&gt; Regards,<br>
&gt; Ram<br>
&gt; --<br>
&gt; View this message in context:<br>
&gt; <a href="http://drools-java-rules-engine.46999.n3.nabble.com/Drools-Human-Task-Service-Persistence-tp1868778p1881543.html" target="_blank">http://drools-java-rules-engine.46999.n3.nabble.com/Drools-Human-Task-Service-Persistence-tp1868778p1881543.html</a><br>



&gt; Sent from the Drools - User mailing list archive at Nabble.com.<br>
&gt; _______________________________________________<br>
&gt; rules-users mailing list<br>
&gt; <a href="mailto:rules-users@lists.jboss.org" target="_blank">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>
&gt;<br>
<br>
</div></div><font color="#888888">--<br>
从我的移动设备发送<br>
<br>
唐睿<br>
</font><div><div></div><div><br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">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></div></div><br><br clear="all"><br>-- <br><div class="im">&nbsp;- CTO @ <a href="http://www.plugtree.com" target="_blank">http://www.plugtree.com</a>&nbsp; <br>&nbsp;- MyJourney @ <a href="http://salaboy.wordpress.com" target="_blank">http://salaboy.wordpress.com</a><br>


&nbsp;- Co-Founder @ <a href="http://www.jbug.com.ar" target="_blank">http://www.jbug.com.ar</a><br>&nbsp;<br>&nbsp;- Salatino &quot;Salaboy&quot; Mauricio -<br>
</div></div>
<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>
<br></blockquote></div><br><br clear="all"><br>-- <br>唐睿<br>