Skip to content

Instantly share code, notes, and snippets.

@mariofts
Created October 21, 2014 18:06
Show Gist options
  • Save mariofts/01a9fadc2d9e3bf4c778 to your computer and use it in GitHub Desktop.
Save mariofts/01a9fadc2d9e3bf4c778 to your computer and use it in GitHub Desktop.
SessionFactoryConfig
<bean id="sessionFactory" class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean">
<property name="hibernateProperties">
<props>
<prop key="hibernate.connection.url">jdbc:mysql://localhost/fj27</prop>
<prop key="hibernate.connection.driver_class">com.mysql.jdbc.Driver</prop>
<prop key="hibernate.connection.username">root</prop>
<prop key="hibernate.connection.password"></prop>
<prop key="hibernate.dialect">org.hibernate.dialect.MySQLDialect</prop>
<prop key="hibernate.show_sql">true</prop>
<prop key="hibernate.format_sql">true</prop>
<prop key="hibernate.hbm2ddl.auto">update</prop>
</props>
</property>
<property name="packagesToScan" value="br.com.caelum.estoque" />
</bean>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment