You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ode.apache.org by 胡长城 <hu...@primeton.com> on 2008/12/17 03:58:09 UTC
Why hibernate use "BPEL_" prefix table name?
hi,
I trying to change ode 1.2 to use Hibernate DAO instead of JPA DAO. And I was using stable release 1.2 version source code.
I built the hibernate configuration files and schema files from "dao-hibernate-db" project.
I found that Hibernate DAO use "BPEL_" prefix table name instead of "ODE_" prefix table. The JPA DAO use "ODE_" prefix tables. That means I had to create new tables to store the hibernate dao datas.
It's an error or your original designing? Thanks.
2008-12-17
James Hu
james-fly@vip.sina.com
Re: Why hibernate use "BPEL_" prefix table name?
Posted by Alexis Midon <mi...@intalio.com>.
a common prefix won't help anyway. JPA and Hibernate database schemas are
(slightly) different and you can't switch from one ORM to another
transparently.
So we could say different prefixes avoid confusion, it's a bit of stretch I
agree ;)
Alexis
On Tue, Dec 16, 2008 at 6:58 PM, 胡长城 <hu...@primeton.com> wrote:
> hi,
>
> I trying to change ode 1.2 to use Hibernate DAO instead of JPA DAO. And I
> was using stable release 1.2 version source code.
> I built the hibernate configuration files and schema files from
> "dao-hibernate-db" project.
>
> I found that Hibernate DAO use "BPEL_" prefix table name instead of "ODE_"
> prefix table. The JPA DAO use "ODE_" prefix tables. That means I had to
> create new tables to store the hibernate dao datas.
>
> It's an error or your original designing? Thanks.
>
> 2008-12-17
>
>
>
> James Hu
> james-fly@vip.sina.com
>