There's two things: 1. The hibernate3 plugin runs an hbm2ddl goal to create database tables from POJOs. 2. There's a hibernate setting you can add to the sessionFactory bean to create tables as well.
#1 runs for modular projects when you run tests in the "core" module. It also runs for basic projects. #2 is off, so no one has been using it unless they tweaked their hibernate/sessionFactory settings. Matt On 7/30/07, tibi <[EMAIL PROTECTED]> wrote: > just to make it clear. is hbm2ddl the part which will create a new > database when i run integration-test (or test)? > > tibi > > Matt Raible wrote: > > I'm inclined to leave it *off* by default. Why? Because it's been off > > for the last several releases and no one has complained about it. I > > also don't want to ship a version of AppFuse that auto-upgrades > > database tables w/o developers being aware of it. In most real-world > > environment, the database upgrades are handled by DBAs, not > > developers. > > > > Matt > > > > On 7/30/07, tibi <[EMAIL PROTECTED]> wrote: > > > >> please leave it on by default. > >> > >> i use it for testing and building. > >> in deployment its is not in the way as long as you will not build > >> against your life database. > >> > >> and it is easier to turn of than on ;) > >> > >> good luck > >> > >> > >> tibi > >> > >> Martin Homik wrote: > >> > >>> As a newbie, I also vote for turning on by default. Once you get familiar > >>> with AppFuse and/or application frameworks, people will figure out how to > >>> turn off the hibernate plugin either be checking the mailing list or by > >>> having a look into the FAQ. The latter is one of my first sources I check > >>> once I get stuck. Therefore, it'll be great to covor common problems in > >>> the > >>> FAQ. > >>> > >>> Martin > >>> > >>> > >>> > >>> Matt Raible-3 wrote: > >>> > >>> > >>>> What do folks think, should we turn hbm2ddl off by default? Or leave > >>>> it on so the database is updated by default, and users have to do the > >>>> steps below to turn it off? > >>>> > >>>> Thanks, > >>>> > >>>> Matt > >>>> > >>>> On 1/28/07, Matt Raible <[EMAIL PROTECTED]> wrote: > >>>> > >>>> > >>>>> It's on by default in the base sessionFactory definition of AppFuse. > >>>>> Now that the hibernate3 plugin is working as expected, it might be a > >>>>> good idea to turn it off again. In the meantime, you should be able > >>>>> to either 1) create a src/main/resources/hibernate.properties with: > >>>>> > >>>>> hibernate.hbm2ddl.auto=false > >>>>> > >>>>> Or 2), you can define a bean definition as follows: > >>>>> > >>>>> <bean > >>>>> class="org.appfuse.dao.spring.HibernateExtensionPostProcessor"> > >>>>> <property name="hibernateProperties"> > >>>>> <value>hibernate.hbm2ddl.auto=false</value> > >>>>> </property> > >>>>> </bean> > >>>>> > >>>>> On 1/28/07, Jaime Geovane Marcondes <[EMAIL PROTECTED]> wrote: > >>>>> > >>>>> > >>>>>> Hi. > >>>>>> We are migrating a old webapp from webwork to appfuse2.0-M2, and it > >>>>>> > >>>>>> > >>>>> speeding > >>>>> > >>>>> > >>>>>> up the development process. > >>>>>> Now we want to deploy the project, but when the project initializes, he > >>>>>> executes hibernate:hbm2ddl goal. How we can turn this off ? > >>>>>> > >>>>>> > >>>>>> Thanks! > >>>>>> -- > >>>>>> View this message in context: > >>>>>> > >>>>>> > >>>>> http://www.nabble.com/Turning-Off-hbm2ddl-tf3133830s2369.html#a8683543 > >>>>> > >>>>> > >>>>>> Sent from the AppFuse - User mailing list archive at Nabble.com. > >>>>>> > >>>>>> --------------------------------------------------------------------- > >>>>>> To unsubscribe, e-mail: [EMAIL PROTECTED] > >>>>>> For additional commands, e-mail: [EMAIL PROTECTED] > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>> -- > >>>>> http://raibledesigns.com > >>>>> > >>>>> > >>>>> > >>>> -- > >>>> http://raibledesigns.com > >>>> > >>>> --------------------------------------------------------------------- > >>>> To unsubscribe, e-mail: [EMAIL PROTECTED] > >>>> For additional commands, e-mail: [EMAIL PROTECTED] > >>>> > >>>> > >>>> > >>>> > >>>> > >>> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > >> > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- http://raibledesigns.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]