Skip to main content



      Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » Disable the schemaExport on the hibernate
Disable the schemaExport on the hibernate [message #615851] Wed, 12 March 2008 14:05
Eclipse UserFriend
I'm trying to disable the schema export each time I connect to the
database. It takes a long time to connect and if it is a different
schema it tries to update and that is the wrong solution for production
application.

Here is what I tried:
I create properties for hibernate and assign -
props.setProperty(Environment.HBM2DDL_AUTO, "validate");
dataStore.setHibernateProperties(props);

Please note that I need to use the properties because my application
dynamically changes the database connection with the user input. So I
do not have a configuration file and I manage it via properties.

This should not export the schema but only validate it. However, it
does not have any impact on hibernate. Hibernate always rebuild the schema.

Any ideas how to cause Hibernate not to export the schema.
Tunning it OFF is the best option I'm looking for. Validate is my second.

Thanks
Yigal
Previous Topic:Teneo: Problem with using QualifyingEntityNameStrategy
Next Topic:[Teneo/EMF] Question
Goto Forum:
  


Current Time: Tue Jul 08 01:43:13 EDT 2025

Powered by FUDForum. Page generated in 0.17733 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top