spanner-hibernate

Hibernate library for Google Cloud Spanner

License

License

Categories

Categories

Hibernate Data ORM
GroupId

GroupId

nl.topicus
ArtifactId

ArtifactId

spanner-hibernate
Last Version

Last Version

0.9
Release Date

Release Date

Type

Type

jar
Description

Description

spanner-hibernate
Hibernate library for Google Cloud Spanner
Project URL

Project URL

https://github.com/olavloite/spanner-hibernate
Source Code Management

Source Code Management

https://github.com/olavloite/spanner-hibernate

Download spanner-hibernate

How to add to project

<!-- https://jarcasting.com/artifacts/nl.topicus/spanner-hibernate/ -->
<dependency>
    <groupId>nl.topicus</groupId>
    <artifactId>spanner-hibernate</artifactId>
    <version>0.9</version>
</dependency>
// https://jarcasting.com/artifacts/nl.topicus/spanner-hibernate/
implementation 'nl.topicus:spanner-hibernate:0.9'
// https://jarcasting.com/artifacts/nl.topicus/spanner-hibernate/
implementation ("nl.topicus:spanner-hibernate:0.9")
'nl.topicus:spanner-hibernate:jar:0.9'
<dependency org="nl.topicus" name="spanner-hibernate" rev="0.9">
  <artifact name="spanner-hibernate" type="jar" />
</dependency>
@Grapes(
@Grab(group='nl.topicus', module='spanner-hibernate', version='0.9')
)
libraryDependencies += "nl.topicus" % "spanner-hibernate" % "0.9"
[nl.topicus/spanner-hibernate "0.9"]

Dependencies

provided (1)

Group / Artifact Type Version
org.hibernate : hibernate-core jar 5.2.12.Final

Project Modules

There are no modules declared in this project.

DEPRECATED

This project is no longer actively maintained.

It is recommended to use the officially supported Hibernate dialect that can be found at https://github.com/GoogleCloudPlatform/google-cloud-spanner-hibernate in combination with the offically supported open source JDBC driver found at https://github.com/googleapis/java-spanner-jdbc.

spanner-hibernate

Hibernate Dialect for Google Cloud Spanner

This dialect can be used in combination with the community open source JDBC Driver for Google Cloud Spanner (spanner-jdbc, https://github.com/olavloite/spanner-jdbc).

Releases are available on Maven Central. Current release is version 0.8.

	<dependency>
    		<groupId>nl.topicus</groupId>
    		<artifactId>spanner-hibernate</artifactId>
    		<version>0.8</version>
	</dependency>

Generating schema

The dialect supports the automatic generation of the required schema from the metamodel. Executing DDL statements on Google Cloud Spanner can be relatively slow. In order to speed this up, the JDBC driver of Google Cloud Spanner supports automatic batching of DDL statements. This dialect can utilize this functionality of the JDBC driver by setting a custom SchemaManagementTool like this:

hibernate.schema_management_tool=nl.topicus.hibernate.dialect.CloudSpannerSchemaManagementTool

Have a look at this sample project on how to use this setting: https://github.com/olavloite/spring-boot/tree/master/spring-boot-samples/spring-boot-sample-data-rest

Versions

Version
0.9
0.8
0.7
0.6
0.5
0.4
0.3
0.2
0.1