Constructor and Description |
---|
PersistenceUnitConfig() |
public String getDatasource()
public JpaConfig.PersistenceUnitConfig setDatasource(String datasource)
public boolean isUsingDatasource()
public Class<? extends javax.persistence.spi.PersistenceProvider> getProvider()
public JpaConfig.PersistenceUnitConfig setProvider(Class<? extends javax.persistence.spi.PersistenceProvider> provider)
public javax.persistence.spi.PersistenceUnitTransactionType getTransactionType()
public JpaConfig.PersistenceUnitConfig setTransactionType(javax.persistence.spi.PersistenceUnitTransactionType transactionType)
public JpaConfig.PersistenceUnitConfig setMappingFiles(List<String> mappingFiles)
public boolean hasMappingFiles()
public JpaConfig.PersistenceUnitConfig addMappingFile(String mappingFile)
public JpaConfig.PersistenceUnitConfig setClasses(List<Class<?>> classes)
public boolean hasClasses()
public JpaConfig.PersistenceUnitConfig addClass(Class<?> someClass)
public javax.persistence.SharedCacheMode getSharedCacheMode()
public void setSharedCacheMode(javax.persistence.SharedCacheMode sharedCacheMode)
public javax.persistence.ValidationMode getValidationMode()
public void setValidationMode(javax.persistence.ValidationMode validationMode)
public Properties getProperties()
public JpaConfig.PersistenceUnitConfig setProperties(Properties properties)
public JpaConfig.PersistenceUnitConfig setProperty(String key, String value)
public Class<? extends JpaExceptionHandler> getExceptionHandler()
public JpaConfig.PersistenceUnitConfig setExceptionHandler(Class<? extends JpaExceptionHandler> exceptionHandler)
public boolean hasExceptionHandler()
Copyright © 2013-2018–2019 SeedStack. All rights reserved.