Results 1 to 2 of 2

Thread: Is data on tables deleted with this?

  1. #1

    Default Is data on tables deleted with this?

    Will the following config temper with the data on existing tables at all?

    Code:
    	<bean id="hibernateSession" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
    		<property name="dataSource"><ref bean="dataSource"/></property>
    		<property name="configLocation"><value>WEB-INF/hibernate.cfg.xml</value></property>
    		<!-- <property name="configurationClass"><value>org.hibernate.cfg.AnnotationConfiguration</value></property> -->
    		<property name="hibernateProperties">
    			<props>
    				<prop key="hibernate.dialect">org.hibernate.dialect.Oracle9iDialect</prop>
    				<!-- <prop key="hibernate.hbm2ddl.auto">update</prop> -->
    			</props>
    		</property>
    	</bean>
    All my tables exist with data on them. I wouldn't like hibernate to drop tables without me knowing ...

  2. #2
    Join Date
    Nov 2007
    Posts
    420

    Default

    no, that just defines hibernate session factory on some data source - your tables will be untouched.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •