Skip to content

Conversation

@adutra
Copy link
Contributor

@adutra adutra commented Jan 20, 2025

Note: this PR assumes #610 will get merged in its current state.

@adutra adutra added the documentation Improvements or additions to documentation, especially web site content label Jan 22, 2025
@flyrain
Copy link
Contributor

flyrain commented Jan 23, 2025

cc @aihuaxu

Copy link
Contributor

@flyrain flyrain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with minor comments.


> Note: some database systems such as Postgres don't create databases automatically. Database admins need to create them manually before running Polaris server.
A single `persistence.xml` can describe multiple [persistence units](https://eclipse.dev/eclipselink/documentation/2.6/concepts/app_dev001.htm). For example, with both a `polaris-dev` and `polaris` persistence unit defined, you could use a single `persistence.xml` to easily switch between development and production databases. Use the `persistence-unit` option in the Polaris server configuration to easily switch between persistence units.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It'd be nice to give an example of a single file with multiple units. But it isn't a blocker to me. We can improve on it later.

@flyrain flyrain merged commit 353269a into apache:main Jan 23, 2025
5 checks passed
@flyrain
Copy link
Contributor

flyrain commented Jan 23, 2025

Thanks @adutra for the fix. Thanks @dimas-b for the review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation, especially web site content

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants