From 51e86a4d4f1f7a78a54b809dea40fb9f2bdbc36a Mon Sep 17 00:00:00 2001 From: Christian Beikov Date: Thu, 25 Apr 2024 18:54:32 +0200 Subject: [PATCH] Add README that explains how to run JPA spec tests in IntelliJ --- jpa/spec-tests/README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 jpa/spec-tests/README.md diff --git a/jpa/spec-tests/README.md b/jpa/spec-tests/README.md new file mode 100644 index 0000000000..3bd4d7d745 --- /dev/null +++ b/jpa/spec-tests/README.md @@ -0,0 +1,17 @@ +# JPA spec tests + +## Running in IntelliJ + +Create a run configuration for a test and add the following system properties for e.g. PostgreSQL with Hibernate ORM + +* `-Dplatform.mode=standalone` +* `-Dpersistence.unit.name=JPATCK` +* `-Dpersistence.unit.name.2=JPATCK2` +* `-Djakarta.persistence.jdbc.user=hibernate_orm_test` +* `-Djakarta.persistence.jdbc.password=hibernate_orm_test` +* `-Djdbc.db=postgresql` +* `-Djakarta.persistence.provider=org.hibernate.jpa.HibernatePersistenceProvider` +* `-Djakarta.persistence.jdbc.driver=org.postgresql.Driver` +* `-Djakarta.persistence.jdbc.url=jdbc:postgresql://localhost/hibernate_orm_test?preparedStatementCacheQueries=0&escapeSyntaxCallMode=callIfNoReturn` +* `-Djpa.provider.implementation.specific.properties=hibernate.query.jpaql_strict_compliance=true:hibernate.id.new_generator_mappings=true:hibernate.cache.region.factory_class=org.hibernate.testing.cache.CachingRegionFactory:hibernate.model.generator_name_as_sequence_name=true:hibernate.jpa.compliance.transaction=true:hibernate.jpa.compliance.closed=true:hibernate.jpa.compliance.query=true:hibernate.jpa.compliance.list=true:hibernate.jpa.compliance.caching=true:hibernate.jpa.compliance.global_id_generators=true:hibernate.jpa.compliance=true:hibernate.type.wrapper_array_handling=legacy:hibernate.show_sql=true` +* `-Dpersistence.second.level.caching.supported=true` \ No newline at end of file