Skip to content

Passed

org.eclipse.persistence.testing.tests.jpa.advanced.multitenant.AdvancedMultiTenant123JunitTest.testCreateEMF123WithoutAllTenantPropertiesSet

Took 41 ms.

Standard Output

[EL Warning]: metadata: 2024.06.12 11:48:54.708--ServerSession(726416425)--The tenant discriminator context property for the tenant discriminator column [JPA_MAFIOSO_ADDRESS.TENANT_ID] on the element [class org.eclipse.persistence.testing.models.jpa.advanced.multitenant.Address] is being defaulted to: eclipselink.tenant-id.
[EL Warning]: metadata: 2024.06.12 11:48:54.709--ServerSession(726416425)--You have specified multiple ids for the entity class [org.eclipse.persistence.testing.models.jpa.ad
...[truncated 829 chars]...
eclipse.persistence.exceptions.ValidationException
Exception Description: The multitenant context property [eclipselink.tenant-id] has not been provided. When the persistence unit property (eclipselink.multitenant.tenants-share-emf) is set to false, all multitenant context properties must be provided up front. This can be done through the persistence unit definition directly or by passing a properties map containing all the multitenant context properties on the create EntityManagerFactory call.