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">tangrui.cn</a>@<a href="http://gmail.com">gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;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">ramram858@gmail.com</a>&gt;:<br>
<div><div></div><div class="h5">&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">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 class="h5"><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>&nbsp;- CTO @ <a href="http://www.plugtree.com">http://www.plugtree.com</a>&nbsp; <br>&nbsp;- MyJourney @ <a href="http://salaboy.wordpress.com">http://salaboy.wordpress.com</a><br>
&nbsp;- Co-Founder @ <a href="http://www.jbug.com.ar">http://www.jbug.com.ar</a><br>&nbsp;<br>&nbsp;- Salatino &quot;Salaboy&quot; Mauricio -<br>
</div>