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

Default schema for an additional persistence unit cannot be set during runtime #36838

Closed
BegoRubarth opened this issue Nov 2, 2023 · 3 comments
Labels
area/hibernate-orm Hibernate ORM kind/bug Something isn't working triage/needs-feedback We are waiting for feedback.

Comments

@BegoRubarth
Copy link

Describe the bug

When setting a default schema for an additional persistence unit (quarkus.hibernate-orm."persistence-unit-name".database.default-schema) it will be ignored, when not set during build time.

Expected behavior

If a schema is given via the property quarkus.hibernate-orm."persistence-unit-name".database.default-schema in an .env file, the schema should be used by hibernate when accessing the database.

Actual behavior

The default schema is only used, when the property quarkus.hibernate-orm."persistence-unit-name".database.default-schema is present in the application.properties, during build time.

How to Reproduce?

No response

Output of uname -a or ver

Linux import-service-pnet-6bf995bd8-frw49 5.15.0-1049-azure #56-Ubuntu SMP Wed Sep 20 12:34:34 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

Output of java -version

openjdk version "17.0.6" 2023-01-17 OpenJDK Runtime Environment Temurin-17.0.6+10 (build 17.0.6+10) OpenJDK 64-Bit Server VM Temurin-17.0.6+10 (build 17.0.6+10, mixed mode, sharing)

Quarkus version or git rev

3.5.0

Build tool (ie. output of mvnw --version or gradlew --version)

Apache Maven 3.8.6

Additional information

The database used is an AzureSQL database which has the restriction, that a default schema cannot be set for a connection. But as hibernate should build SQL statements, referencing the default schema, this should not be an issue.

@BegoRubarth BegoRubarth added the kind/bug Something isn't working label Nov 2, 2023
@quarkus-bot quarkus-bot bot added the area/persistence OBSOLETE, DO NOT USE label Nov 2, 2023
@yrodiere yrodiere added area/hibernate-orm Hibernate ORM and removed area/persistence OBSOLETE, DO NOT USE labels Aug 13, 2024
@yrodiere
Copy link
Member

Hello,

This seems to have slipped through the cracks.

Are you also using schema multitenancy? If so, see #41754.

If not, this is indeed unexpected. can you please provide a repreoducer?

@yrodiere yrodiere added the triage/needs-feedback We are waiting for feedback. label Aug 13, 2024
@yrodiere
Copy link
Member

yrodiere commented Sep 4, 2024

Gentle reminder :)

Are you also using schema multitenancy? If so, see #41754.

If not, this is indeed unexpected. can you please provide a reproducer?

@geoand
Copy link
Contributor

geoand commented Sep 27, 2024

Closing for lack of feedback

@geoand geoand closed this as not planned Won't fix, can't repro, duplicate, stale Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/hibernate-orm Hibernate ORM kind/bug Something isn't working triage/needs-feedback We are waiting for feedback.
Projects
None yet
Development

No branches or pull requests

3 participants