Class DatabaseProperties
java.lang.Object
org.apereo.cas.configuration.model.support.jpa.DatabaseProperties
- All Implemented Interfaces:
Serializable
@RequiresModule(name="cas-server-support-jdbc-drivers")
public class DatabaseProperties
extends Object
implements Serializable
This is
DatabaseProperties
.- Since:
- 5.0.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionIndicate a physical table name to be used by the hibernate naming strategy in case table names need to be customized for the specific type of database.boolean
When choosing physical table names, determine whether names should be considered case-insensitive.boolean
isGenDdl()
Whether to generate DDL after the EntityManagerFactory has been initialized creating/updating all relevant tables.boolean
Whether SQL queries should be displayed in the console/logs.setCaseInsensitive
(boolean caseInsensitive) When choosing physical table names, determine whether names should be considered case-insensitive.setGenDdl
(boolean genDdl) Whether to generate DDL after the EntityManagerFactory has been initialized creating/updating all relevant tables.setPhysicalTableNames
(Map<String, String> physicalTableNames) Indicate a physical table name to be used by the hibernate naming strategy in case table names need to be customized for the specific type of database.setShowSql
(boolean showSql) Whether SQL queries should be displayed in the console/logs.
-
Constructor Details
-
DatabaseProperties
public DatabaseProperties()
-
-
Method Details
-
isShowSql
public boolean isShowSql()Whether SQL queries should be displayed in the console/logs. -
isGenDdl
public boolean isGenDdl()Whether to generate DDL after the EntityManagerFactory has been initialized creating/updating all relevant tables. -
isCaseInsensitive
public boolean isCaseInsensitive()When choosing physical table names, determine whether names should be considered case-insensitive. -
getPhysicalTableNames
Indicate a physical table name to be used by the hibernate naming strategy in case table names need to be customized for the specific type of database. The key here indicates the CAS-provided table name and the value is the translate physical name for the database. If a match is not found for the CAS-provided table name, then that name will be used by default. -
setShowSql
Whether SQL queries should be displayed in the console/logs.- Returns:
this
.
-
setGenDdl
Whether to generate DDL after the EntityManagerFactory has been initialized creating/updating all relevant tables.- Returns:
this
.
-
setCaseInsensitive
When choosing physical table names, determine whether names should be considered case-insensitive.- Returns:
this
.
-
setPhysicalTableNames
Indicate a physical table name to be used by the hibernate naming strategy in case table names need to be customized for the specific type of database. The key here indicates the CAS-provided table name and the value is the translate physical name for the database. If a match is not found for the CAS-provided table name, then that name will be used by default.- Returns:
this
.
-