Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jpa-unit rdbms extension requires the usage of javax.persistence.jdbc.user and -password #37

Closed
dadrus opened this issue Jun 15, 2018 · 1 comment

Comments

@dadrus
Copy link
Owner

dadrus commented Jun 15, 2018

javax.persistence.jdbc.user and javax.persistence.jdbc.password are not always required to be configured. Some rdbms support setting of user and password as part of the jdbc url. In such cases the jpa-unit rdbms extension cannot be used. It simply ignores the persistence.xml configuration und thus is not executed.

The solution is simple: just delete the verification of the presence of the both aforesaid properties in the `persistence.xml'.

As a workaround for the test code affected by this issue (as long as the fix is not avalable), configure the aforesaid properties and remove corresponding settings from the jdbc url.

@dadrus
Copy link
Owner Author

dadrus commented Jun 28, 2018

solved in #40

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

No branches or pull requests

1 participant