Advertisement
Guest User

Untitled

a guest
Oct 14th, 2016
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.22 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <persistence version="2.1" xmlns="http://xmlns.jcp.org/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd">
  3.   <persistence-unit name="UrgentPU" transaction-type="RESOURCE_LOCAL">
  4.     <provider>org.hibernate.jpa.HibernatePersistenceProvider</provider>
  5.     <class>entities.Person</class>
  6.     <exclude-unlisted-classes>false</exclude-unlisted-classes>
  7.     <properties>
  8.       <property name="hibernate.dialect" value="org.hibernate.dialect.FirebirdDialect"/>
  9.       <property name="javax.persistence.jdbc.url" value="jdbc:firebirdsql:localhost/3050:c:/zkouska.fdb"/>
  10.       <property name="javax.persistence.jdbc.user" value="michy"/>
  11.       <property name="javax.persistence.jdbc.driver" value="org.firebirdsql.jdbc.FBDriver"/>
  12.       <property name="javax.persistence.jdbc.password" value="qaywsxedc"/>
  13.       <property name="hibernate.cache.provider_class" value="org.hibernate.cache.NoCacheProvider"/>
  14.       <property name="javax.persistence.schema-generation.database.action" value="create"/>
  15.     </properties>
  16.   </persistence-unit>
  17. </persistence>
  18.  
  19.  
  20. <?xml version="1.0" encoding="UTF-8"?>
  21. <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
  22. <hibernate-configuration>
  23.   <session-factory>
  24.     <property name="hibernate.dialect">org.hibernate.dialect.FirebirdDialect</property>
  25.     <property name="hibernate.connection.driver_class">org.firebirdsql.jdbc.FBDriver</property>
  26.     <property name="hibernate.connection.url">jdbc:firebirdsql:localhost/3050:c:/ZKOUSKA.FDB</property>
  27.     <property name="hibernate.connection.username">SYSDBA</property>
  28.     <property name="hibernate.connection.password">masterkey</property>
  29.     <property name="hibernate.hbm2ddl.auto">update</property>
  30.     <property name="show_sql">true</property>
  31.   </session-factory>
  32. </hibernate-configuration>
  33.  
  34.     @Id
  35.     @SequenceGenerator(name = "entity1Seq", sequenceName="PERSON_ID_GEN", allocationSize=1)
  36.     @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "entity1Seq")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement