diff options
author | mavlonerkinboev <mavlonbek.ibragimov007@gmail.com> | 2021-07-22 18:23:31 +0500 |
---|---|---|
committer | mavlonerkinboev <mavlonbek.ibragimov007@gmail.com> | 2021-07-22 18:23:31 +0500 |
commit | cf3a45e8dac64da2482730309d99393826b0a300 (patch) | |
tree | 2d65527461b982f033f4176a127bb12c4b4e0b8d /src/main/resources/META-INF/persistence.xml | |
parent | 6cf764da0da43bd84851181367dc17de3dbdcb82 (diff) |
third commit
Diffstat (limited to 'src/main/resources/META-INF/persistence.xml')
-rw-r--r-- | src/main/resources/META-INF/persistence.xml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/main/resources/META-INF/persistence.xml b/src/main/resources/META-INF/persistence.xml new file mode 100644 index 0000000..7798194 --- /dev/null +++ b/src/main/resources/META-INF/persistence.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="utf-8"?> +<persistence xmlns="http://java.sun.com/xml/ns/persistence" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd" + version="2.0"> + + <persistence-unit name="animarfo" transaction-type="RESOURCE_LOCAL"> + <provider>org.hibernate.ogm.jpa.HibernateOgmPersistence</provider> + + <class>files.entity.User</class> + + <properties> + <property name="hibernate.ogm.datastore.provider" value="mongodb"/> + <property name="hibernate.ogm.datastore.database" value="animarfo"/> + <property name="hibernate.ogm.datastore.host" value="localhost"/> + <property name="hibernate.ogm.datastore.create_database" value="true"/> + </properties> + </persistence-unit> + +</persistence>
\ No newline at end of file |