yes I'm with Rui,<div>Changing the annotations in the code requires recompilation.. and that'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"><<a href="http://tangrui.cn">tangrui.cn</a>@<a href="http://gmail.com">gmail.com</a>></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'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've read some other one'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's your opinion? Look forward.<br>
<br>
2010/11/11, ramram <<a href="mailto:ramram858@gmail.com">ramram858@gmail.com</a>>:<br>
<div><div></div><div class="h5">><br>
> Hi Salaboy, Kris<br>
><br>
> I managed to do the persistence to Oracle and that is not by creating an<br>
> xml file but by adding annotations to the org.drools.task file and I mean by<br>
> this:<br>
><br>
> for example org.drools.task.Deadline<br>
> - the column name [date] reserved word for oracle. So what I did is<br>
> the following: in the java file I added the following :<br>
> - @Column(name="dDate")<br>
> private Date date;<br>
> and For the classes that have long table name such as<br>
> org.drools.EmailNotificationHeader<br>
> @Entity<br>
> @Table(name="EmailNotifHead")<br>
> public class EmailNotificationHeader<br>
><br>
><br>
> can you add this in the next releases to the drools task??????<br>
> is the solution that I did a correct one??????<br>
><br>
> Regards,<br>
> Ram<br>
> --<br>
> View this message in context:<br>
> <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>
> Sent from the Drools - User mailing list archive at Nabble.com.<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>
<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> - CTO @ <a href="http://www.plugtree.com">http://www.plugtree.com</a> <br> - MyJourney @ <a href="http://salaboy.wordpress.com">http://salaboy.wordpress.com</a><br>
- Co-Founder @ <a href="http://www.jbug.com.ar">http://www.jbug.com.ar</a><br> <br> - Salatino "Salaboy" Mauricio -<br>
</div>