JDBC Drivers
While in most cases this is unnecessary and handled by CAS automatically, you may need to also include the following module to account for various database drivers:
1
2
3
4
5
<dependency>
<groupId>org.apereo.cas</groupId>
<artifactId>cas-server-support-jdbc-drivers</artifactId>
<version>${cas.version}</version>
</dependency>
Database Support
Automatic support for drivers includes the following databases. All other drivers need to be manually added to the build configuration. To see the relevant list of CAS properties, please review this guide.
Oracle
Download manually from this link.
We recommend that you review the Oracle Technology Network License Agreement, section "Programs Redistribution".
Apache Maven
You need to install it into your local repository that houses and caches all artifacts.
1
mvnw install:install-file -Dfile=[path/to/your/ojdbc.jar] -DgroupId=com.oracle -DartifactId=[ojdbc-jar-name] -Dversion=[ojdbc-version] -Dpackaging=jar
Then include in your build as such:
1
2
3
4
5
<dependency>
<groupId>com.oracle</groupId>
<artifactId>[ojdbc-jar-name]</artifactId>
<version>[ojdbc-version]</version>
</dependency>
Gradle
You may reference the downloaded JAR directly in your build script:
1
2
3
4
5
dependencies {
...
runtime files("[path/to/your/ojdbc.jar]")
...
}
HSQLDB
Available drivers are:
org.hsqldb.jdbcDriver
Dialects |
---|
org.hibernate.dialect.HSQLDialect |
Oracle
Note that the Oracle database driver needs to be manually installed before the above configuration can take effect. Depending on the driver version, the actual name of the driver class may vary.
Dialects |
---|
org.hibernate.dialect.Oracle8iDialect |
org.hibernate.dialect.Oracle9iDialect |
org.hibernate.dialect.Oracle10gDialect |
org.hibernate.dialect.Oracle12cDialect |
MYSQL
Available drivers are:
com.mysql.jdbc.Driver
com.mysql.cj.jdbc.Driver
Dialects |
---|
org.hibernate.dialect.MySQLDialect |
org.hibernate.dialect.MySQL5Dialect |
org.hibernate.dialect.MySQLInnoDBDialect |
org.hibernate.dialect.MySQLMyISAMDialect |
org.hibernate.dialect.MySQL5InnoDBDialect |
org.hibernate.dialect.MySQL57InnoDBDialect |
PostgreSQL
Available drivers are:
org.postgresql.Driver
Dialects |
---|
org.hibernate.dialect.PostgreSQL81Dialect |
org.hibernate.dialect.PostgreSQL82Dialect |
org.hibernate.dialect.PostgreSQL9Dialect |
org.hibernate.dialect.PostgreSQL91Dialect |
org.hibernate.dialect.PostgreSQL92Dialect |
org.hibernate.dialect.PostgreSQL93Dialect |
org.hibernate.dialect.PostgreSQL94Dialect |
org.hibernate.dialect.PostgreSQL95Dialect |
org.hibernate.dialect.PostgresPlusDialect |
MariaDB
Available drivers are:
org.mariadb.jdbc.Driver
Dialects |
---|
org.hibernate.dialect.MariaDBDialect |
org.hibernate.dialect.MariaDBDialect |
Microsoft SQL Server
Available drivers are:
net.sourceforge.jtds.jdbc.Driver
com.microsoft.sqlserver.jdbc.SQLServerDriver
Dialects |
---|
org.hibernate.dialect.SQLServerDialect |
org.hibernate.dialect.SQLServer2005Dialect |
org.hibernate.dialect.SQLServer2008Dialect |
org.hibernate.dialect.SQLServer2012Dialect |