This is an automated email from the ASF dual-hosted git repository.
yufei pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/polaris.git
The following commit(s) were added to refs/heads/main by this push:
new 81f82abe Add a note about EclipseLink persistence.xml location (#907)
81f82abe is described below
commit 81f82abe9fba4fc1997e64000a4f4d348f3779b1
Author: JB Onofré <[email protected]>
AuthorDate: Thu Jan 30 18:03:27 2025 +0100
Add a note about EclipseLink persistence.xml location (#907)
---
site/content/in-dev/unreleased/metastores.md | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/site/content/in-dev/unreleased/metastores.md
b/site/content/in-dev/unreleased/metastores.md
index 55a984d8..bbdf0914 100644
--- a/site/content/in-dev/unreleased/metastores.md
+++ b/site/content/in-dev/unreleased/metastores.md
@@ -49,6 +49,7 @@ The `configuration-file` option must point to an [EclipseLink
configuration file
`persistence.xml`, is used to set up the database connection properties, which
can differ depending
on the type of database and its configuration.
+> Note: You have to locate the `persistence.xml` at least two folders down to
the root folder, e.g. `/deployments/config/persistence.xml` is OK, whereas
`/deployments/persistence.xml` will cause an infinity loop.
[Quarkus Configuration Reference]: https://quarkus.io/guides/config-reference
[EclipseLink configuration file]:
https://eclipse.dev/eclipselink/documentation/2.5/solutions/testingjpa002.htm
@@ -132,4 +133,4 @@ java -Dpolaris.persistence.type=eclipse-link \
-Dpolaris.persistence.eclipselink.configuration-file=/path/to/persistence.xml \
-Dpolaris.persistence.eclipselink.persistence-unit=polaris \
-jar quarkus/server/build/quarkus-app/quarkus-run.jar
-```
\ No newline at end of file
+```