Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <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">
- <persistence-unit name="UrgentPU" transaction-type="RESOURCE_LOCAL">
- <provider>org.hibernate.jpa.HibernatePersistenceProvider</provider>
- <class>entities.Person</class>
- <exclude-unlisted-classes>false</exclude-unlisted-classes>
- <properties>
- <property name="hibernate.dialect" value="org.hibernate.dialect.FirebirdDialect"/>
- <property name="javax.persistence.jdbc.url" value="jdbc:firebirdsql:localhost/3050:c:/zkouska.fdb"/>
- <property name="javax.persistence.jdbc.user" value="michy"/>
- <property name="javax.persistence.jdbc.driver" value="org.firebirdsql.jdbc.FBDriver"/>
- <property name="javax.persistence.jdbc.password" value="qaywsxedc"/>
- <property name="hibernate.cache.provider_class" value="org.hibernate.cache.NoCacheProvider"/>
- <property name="javax.persistence.schema-generation.database.action" value="create"/>
- </properties>
- </persistence-unit>
- </persistence>
- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
- <hibernate-configuration>
- <session-factory>
- <property name="hibernate.dialect">org.hibernate.dialect.FirebirdDialect</property>
- <property name="hibernate.connection.driver_class">org.firebirdsql.jdbc.FBDriver</property>
- <property name="hibernate.connection.url">jdbc:firebirdsql:localhost/3050:c:/ZKOUSKA.FDB</property>
- <property name="hibernate.connection.username">SYSDBA</property>
- <property name="hibernate.connection.password">masterkey</property>
- <property name="hibernate.hbm2ddl.auto">update</property>
- <property name="show_sql">true</property>
- </session-factory>
- </hibernate-configuration>
- @Id
- @SequenceGenerator(name = "entity1Seq", sequenceName="PERSON_ID_GEN", allocationSize=1)
- @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "entity1Seq")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement