[rules-users] Drools Human Task Service Persistence
Mauricio Salatino
salaboy at gmail.com
Mon Nov 15 05:41:36 EST 2010
yes I'm with Rui,
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.
I think that the best solution is to create xml mappings for different
vendors.. Rui if you can contribute with that.. will be awesome!
Greetings!
2010/11/11 Rui Tang <tangrui.cn at gmail.com>
> Hi, friends
>
> I'd like to add xml config to fix this this problem. Because
> sometimes, for different databases, we may need different mappings.
> E.g. we may need varchar2 in Oracle other than varchar in others.
>
> I've read some other one's note to say that it is better to define the
> relationship of entities using annotation, but database mapping using
> config files.
>
> What's your opinion? Look forward.
>
> 2010/11/11, ramram <ramram858 at gmail.com>:
> >
> > Hi Salaboy, Kris
> >
> > I managed to do the persistence to Oracle and that is not by creating
> an
> > xml file but by adding annotations to the org.drools.task file and I mean
> by
> > this:
> >
> > for example org.drools.task.Deadline
> > - the column name [date] reserved word for oracle. So what I did is
> > the following: in the java file I added the following :
> > - @Column(name="dDate")
> > private Date date;
> > and For the classes that have long table name such as
> > org.drools.EmailNotificationHeader
> > @Entity
> > @Table(name="EmailNotifHead")
> > public class EmailNotificationHeader
> >
> >
> > can you add this in the next releases to the drools task??????
> > is the solution that I did a correct one??????
> >
> > Regards,
> > Ram
> > --
> > View this message in context:
> >
> http://drools-java-rules-engine.46999.n3.nabble.com/Drools-Human-Task-Service-Persistence-tp1868778p1881543.html
> > Sent from the Drools - User mailing list archive at Nabble.com.
> > _______________________________________________
> > rules-users mailing list
> > rules-users at lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/rules-users
> >
>
> --
> 从我的移动设备发送
>
> 唐睿
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
--
- CTO @ http://www.plugtree.com
- MyJourney @ http://salaboy.wordpress.com
- Co-Founder @ http://www.jbug.com.ar
- Salatino "Salaboy" Mauricio -
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20101115/62165c5e/attachment.html
More information about the rules-users
mailing list