about data base

View: New views
2 Messages — Rating Filter:   Alert me  

about data base

by Freitas :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi people,
     I have some questions about database in easybeans with bundles.

1) If I want use a database different of Hsqldb. How could I modify the agent bundle?

2) If I want use a Hsqldb. How could I use the easybeans.xml or another configuration file configure the database, like to choose the place that I will create my Database's instance.


best regards
Fernando

Re: about data base

by Freitas :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello again,
I am reading the guides (user/developer) of easybeans, but I only found this about the database:


4.2.3.5. Properties for the persistence
         These properties are defined in the META-INF/persistence.xml file.
4.2.3.5.1. JDBC Dialect
         By default, the dialect used to communicate with the database is set to HSQL, as it is embedded in
         EasyBeans.
         This dialect configuration is done with the following properties:
           - - - - - -<property -name="hibernate.dialect" -value="org.hibernate.dialect.HSQLDialect" -/>
           - - - - - -<property -name="toplink.target-database" -value="HSQL"/>
           - - - - - -<property -name="openjpa.jdbc.DBDictionary" -value="hsql"/>
         These properties are for Hibernate, Apache OpenJPA and Oracle TopLink Essentials.
4.2.3.5.2. Database (tables)
         By default, the tables are created and the database is empty after loading the entity beans.
         This configuration is done with the following properties:
           - - - - - -<property  -name="hibernate.hbm2ddl.auto" -value="create-drop"/>
           - - - - - -<property  -name="toplink.ddl-generation" -value="drop-and-create-tables"/>
           - - - - - -<property  -name="toplink.ddl-generation.output-mode" -value="database"/>
           - - - - - -<property  -name="openjpa.jdbc.SynchronizeMappings" -value="buildSchema(ForeignKeys=true)"/
         >
         In order to keep data in the database, this property should be changed.

These are my questions...

1) What Should I change to keep the data in the database?

2) If I want to specify the path for the database creation, what should I do?

Thanks and Best Regards
Fernando



2009/3/16 Fernando Freitas <nandows@...>
Hi people,
     I have some questions about database in easybeans with bundles.

1) If I want use a database different of Hsqldb. How could I modify the agent bundle?

2) If I want use a Hsqldb. How could I use the easybeans.xml or another configuration file configure the database, like to choose the place that I will create my Database's instance.


best regards
Fernando