Package org.hibernate.testing.orm.junit
Annotation Type Jpa
-
@Inherited @Target(TYPE) @Retention(RUNTIME) @TestInstance(PER_CLASS) @ExtendWith(EntityManagerFactoryExtension.class) @ExtendWith(EntityManagerFactoryParameterResolver.class) @ExtendWith(FailureExpectedExtension.class) public @interface Jpa
-
-
Optional Element Summary
-
-
-
Element Detail
-
persistenceUnitName
String persistenceUnitName
- Default:
- "test-pu"
-
-
-
integrationSettings
Setting[] integrationSettings
Used to mimic container integration- Default:
- {}
-
-
-
properties
Setting[] properties
Persistence unit properties- Default:
- {}
-
-
-
settingProviders
SettingProvider[] settingProviders
- Default:
- {}
-
-
-
transactionType
PersistenceUnitTransactionType transactionType
- Default:
- jakarta.persistence.spi.PersistenceUnitTransactionType.RESOURCE_LOCAL
-
-
-
sharedCacheMode
SharedCacheMode sharedCacheMode
- Default:
- jakarta.persistence.SharedCacheMode.UNSPECIFIED
-
-
-
validationMode
ValidationMode validationMode
- Default:
- jakarta.persistence.ValidationMode.NONE
-
-
-
jpaComplianceEnabled
boolean jpaComplianceEnabled
- See Also:
AvailableSettings.JPA_COMPLIANCE
- Default:
- false
-
-
-
standardModels
StandardDomainModel[] standardModels
- Default:
- {}
-
-
-
modelDescriptorClasses
Class<? extends DomainModelDescriptor>[] modelDescriptorClasses
- Default:
- {}
-
-
-
annotatedClasses
Class[] annotatedClasses
- Default:
- {}
-
-
-
annotatedClassNames
String[] annotatedClassNames
- Default:
- {}
-
-
-
annotatedPackageNames
String[] annotatedPackageNames
- Default:
- {}
-
-
-
xmlMappings
String[] xmlMappings
- Default:
- {}
-
-
-
useCollectingStatementInspector
boolean useCollectingStatementInspector
Shorthand for adding@Setting( name = AvailableSettings.STATEMENT_INSPECTOR, value = "org.hibernate.testing.jdbc.SQLStatementInspector"
to the integration settings. Note: if the statement inspector is also explicitly specified as a setting, it will be overridden by the shortcut- See Also:
SQLStatementInspector
- Default:
- false
-
-