SHARE
TWEET

Untitled

a guest May 22nd, 2018 106 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <bean name="myDataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
  2.     <property name="driverClassName" value="com.mysql.jdbc.Driver" />
  3.     <property name="url" value="jdbc:mysql://localhost:3306/hibernate_db" />
  4.     <property name="username" value="my_local_username" />
  5.     <property name="password" value="my_local_password" />
  6. </bean>
  7.  
  8. <bean id="sessionFactory" class="org.springframework.orm.hibernate5.LocalSessionFactoryBean">
  9.         <property name="dataSource" ref="myDataSource" />
  10.         <property name="packagesToScan" value="com.fr.business.entites" />
  11.         <property name="hibernateProperties">
  12.             <props>
  13.                 <prop key="hibernate.dialect">org.hibernate.dialect.MySQLDialect</prop>
  14.                 <prop key="hibernate.show_sql">true</prop>
  15.             </props>
  16. </property>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top