Hibernate
The Kubling Hibernate dialect connects Java applications through the native JDBC driver. Add these dependencies alongside Hibernate ORM:
<dependency>
<groupId>com.kubling</groupId>
<artifactId>kubling-client</artifactId>
<version>26.2</version>
</dependency>
<dependency>
<groupId>com.kubling</groupId>
<artifactId>kubling-hibernate-dialect</artifactId>
<version>26.2</version>
</dependency>Configure Hibernate
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.jdbc.KublingDriver
hibernate.connection.url=jdbc:kubling:MinimalVDB@mm://localhost:35482
hibernate.connection.username=sa
hibernate.connection.pool_size=5
hibernate.show_sql=true
hibernate.format_sql=true
hibernate.hbm2ddl.auto=updateIn case you want to specify client networking properties, add the property to the url as follows:
hibernate.connection.url=jdbc:kubling:MinimalVDB@mms://localhost:35482;connectionPropsFilePath=/path/to/client-settings.propertiesThe 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