[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Two persistence units in one EJB3 App
konstantin.ermakov
do-not-reply at jboss.com
Thu Aug 31 05:30:37 EDT 2006
Hi!
I have two persistence units in my application - one is Oracle and one in HSQL. For the Oracle datasource all the tables are already created, so I use the mapping in my Entity beans. In Hypersonic DB I want to store some additional information, But as it is "In-Memory" I am using the configuration property hibernate.hbm2ddl.auto value="create-drop".
The idea is to use the oracle database to store the data and HSQL DB to store some runtime data, so I have the tables A,B,C in Oracle, and table D in HSQL.
And, all the entity beans that are configured for the Oracle database are immediately created in the HSQL database as well.
Are there any possibilities to configure the persistence unit the way, that only table D is generated?
Thank you.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3968579#3968579
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3968579
More information about the jboss-user
mailing list