Skip to content

Quarkus 3.0.0.CR2 / Hibernate ORM 6 / Multitenancy DISCRIMINATOR Strategy #32686

Closed Answered by yrodiere
humcqc asked this question in Q&A
Discussion options

You must be logged in to vote

One question: if we use this way we don't take into account the quarkus.hibernate-orm.multitenant=discriminator property.

The multitenancy strategy (which is what this property is about) is deprecated. The concept no longer exists in Hibernate ORM.

I think eventually we'll just get rid of it and move schema/database multi-tenancy to the datasource (#11861), and will have to detect whether multi-tenancy is needed in ORM based on the datasource and the presence of @TenantId.

That being said, the solution I suggested works for FastBootEntityManagerFactoryBuilder, but you can't use it in io.quarkus.hibernate.orm.deployment.HibernateOrmProcessor#multitenancy. You don't have the metadata arou…

Replies: 3 comments 9 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
9 replies
@humcqc
Comment options

@yrodiere
Comment options

@humcqc
Comment options

@yrodiere
Comment options

Answer selected by humcqc
@humcqc
Comment options

@humcqc
Comment options

@yrodiere
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants