Advertisement
Guest User

Untitled

a guest
Jun 15th, 2016
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.63 KB | None | 0 0
  1. <persistence xmlns="http://java.sun.com/xml/ns/persistence"
  2. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
  4. version="2.0">
  5. <persistence-unit name="MASPersistence">
  6. <provider>org.hibernate.ejb.HibernatePersistence</provider>
  7. <properties>
  8. <property name="javax.persistence.jdbc.driver" value="com.mysql.jdbc.Driver"/>
  9. <property name="javax.persistence.jdbc.user" value="root"/>
  10. <property name="javax.persistence.jdbc.password" value=""/>
  11. <property name="javax.persistence.jdbc.url" value="jdbc:mysql://localhost/masproject"/>
  12. <property name="hibernate.dialect" value="org.hibernate.dialect.MySQL5InnoDBDialect"/>
  13. <property name="hibernate.max_fetch_depth" value="3"/>
  14. <property name = "hibernate.show_sql" value = "true" />
  15.  
  16. <!-- cache configuration -->
  17. <!--<property name="hibernate.ejb.classcache.org.hibernate.ejb.test.Item" value="read-write"/>-->
  18. <!--<property name="hibernate.ejb.collectioncache.org.hibernate.ejb.test.Item.distributors" value="read-write, RegionName"/>-->
  19.  
  20. <!-- alternatively to <class> and <property> declarations, you can use a regular hibernate.cfg.xml file -->
  21. <!-- property name="hibernate.ejb.cfgfile" value="/org/hibernate/ejb/test/hibernate.cfg.xml"/ -->
  22. <!--<property name="hibernate.hbm2ddl.auto" value="create"/>-->
  23. </properties>
  24. </persistence-unit>
  25. </persistence>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement