ode-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Yu (JIRA)" <j...@apache.org>
Subject [jira] Commented: (ODE-704) clean up the JPA module, supports botht openJPA and Hibernate
Date Mon, 30 Nov 2009 15:07:20 GMT

    [ https://issues.apache.org/jira/browse/ODE-704?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12783685#action_12783685
] 

Jeff Yu commented on ODE-704:
-----------------------------

I did some experiments based on Ode 1.3.3 last week.
Below is the couple steps that we need to do.

1. Refactor the dao-jpa module, pull out two JPA's API into the dao-jpa-ojpa module, and then
introduce a Factory class to produce the corresponding DAO class for OpenJPA and Hibernate,
added another dao-jpa-hibernate module for the Hibernate's specific classes.
2. Need to update the buildr/hibernate.rb class to generate database script by using hibernate
built-in tool (known as hbm2ddl).
3. Need to separate the bpel-store module into two different modules. Currently this module
has four DAO classes, and they put both the JPA and Hibernate impl into same jar with different
package name. One issue is that in its produced jar, it will include the *.hbm.xml file, these
files will get loaded in our JBoss by default, which means if we configure the jpa to use
Hibernate, the entity will get loaded twice.
4. Update the bpel-store's JPA classes. (By adding @Id annotation for Entity, the OpenJPA
will add it by default, Hibernate asks it to be declared explicitly.)
5. Run more tests for verifying.

the code can be found at the jpa branch, it is at: http://anonsvn.jboss.org/repos/riftsaw/branches/ODE/ODE-1.x-jpa/

will need to create some sub-tasks for those steps. and then provide patch as each sub-task.

> clean up the JPA module, supports botht openJPA and Hibernate
> -------------------------------------------------------------
>
>                 Key: ODE-704
>                 URL: https://issues.apache.org/jira/browse/ODE-704
>             Project: ODE
>          Issue Type: Improvement
>          Components: BPEL Runtime
>    Affects Versions: 1.3.3
>            Reporter: Jeff Yu
>             Fix For: 2.0
>
>
> see this thread for detail.
> http://mail-archives.apache.org/mod_mbox/ode-dev/200911.mbox/%3C436a94770911160003m682f1678ra9bd9f00fdc49763@mail.gmail.com%3E

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message