Clients
Drivers
Hibernate

Hibernate

Usage

In your project, add Apache Maven dependencies for the Hibernate ORM core and Kubling JDBC Driver and Dialect.

<dependency>
    <groupId>com.kubling</groupId>
    <artifactId>kubling-client</artifactId>
    <version>25.1.1</version>
</dependency>
<dependency>
    <groupId>com.kubling</groupId>
    <artifactId>kubling-hibernate-dialect</artifactId>
    <version>25.1.1</version>
</dependency>

Set up Hibernate properties

Configure hibernate.properties to use the Kubling Dialect and Kubling JDBC Driver.

hibernate.dialect=com.kubling.hibernate.dialect.KublingDialect
hibernate.connection.driver_class=com.kubling.teiid.jdbc.TeiidDriver
hibernate.connection.url=jdbc:teiid:MinimalVDB@mm://localhost:35482
hibernate.connection.username=sa
hibernate.connection.pool_size=5
hibernate.show_sql=true
hibernate.format_sql=true
hibernate.hbm2ddl.auto=update

In case you want to specify client networking properties, add the property to the url as follows:

hibernate.connection.url=jdbc:teiid:MinimalVDB@mms://localhost:35482;connectionPropsFilePath=/path/to/client-settings.properties

We prepared an example (opens in a new tab) in which you will find the Hibernate Dialect in action on a Spring Boot project.