Skip to Content

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.3.2</version> </dependency> <dependency> <groupId>com.kubling</groupId> <artifactId>kubling-hibernate-dialect</artifactId> <version>25.3.2</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

The configured VDB must be available and its native transport must be enabled before Hibernate creates its connection pool. The Quickstart sample does not expose the native transport because Studio communicates through the instance HTTP APIs.

Last updated on