Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

Commit

Permalink
Release 1.2 version
Browse files Browse the repository at this point in the history
  • Loading branch information
grimsa committed Jul 24, 2017
1 parent 5445bce commit 582ec4c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
23 changes: 13 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ Can be useful in environments where DDL statements cannot be executed from appli
<dependency>
<groupId>com.github.grimsa.hibernate</groupId>
<artifactId>single-table-bulk-id-strategy</artifactId>
<version>1.1</version>
<version>1.2</version>
</dependency>
```
For Gradle:

```
dependencies {
compile 'com.github.grimsa.hibernate:single-table-bulk-id-strategy:1.1'
compile 'com.github.grimsa.hibernate:single-table-bulk-id-strategy:1.2'
}
```

Expand All @@ -32,14 +32,17 @@ Can be useful in environments where DDL statements cannot be executed from appli
3. Set the following Hibernate properties:

```
configuration.setProperty(AvailableSettings.HQL_BULK_ID_STRATEGY, SingleGlobalTemporaryTableBulkIdStrategy.class.getName());
configuration.setProperty(SingleGlobalTemporaryTableBulkIdStrategy.TABLE, "HT_TEMP_IDS");
configuration.setProperty(SingleGlobalTemporaryTableBulkIdStrategy.ID_COLUMN, "ID"); // This is new in 1.2
configuration.setProperty(SingleGlobalTemporaryTableBulkIdStrategy.DISCRIMINATOR_COLUMN, "ENTITY_NAME"); // This is default in 1.2
configuration.setProperty(SingleGlobalTemporaryTableBulkIdStrategy.CLEAN_ROWS, "true");
config.setProperty(AvailableSettings.HQL_BULK_ID_STRATEGY, SingleGlobalTemporaryTableBulkIdStrategy.class.getName());
config.setProperty(SingleGlobalTemporaryTableBulkIdStrategy.TABLE, "HT_TEMP_IDS");
config.setProperty(SingleGlobalTemporaryTableBulkIdStrategy.ID_COLUMN, "ID"); // "ID" is default
config.setProperty(SingleGlobalTemporaryTableBulkIdStrategy.DISCRIMINATOR_COLUMN, "ENTITY_NAME"); // "ENTITY_NAME" is default
config.setProperty(SingleGlobalTemporaryTableBulkIdStrategy.CLEAN_ROWS, "true");
```

## Release history
* 1.2 to be released
* 1.1 released 2016-09-29. Built for Hibernate 5.2
* 1.0 released 2016-09-29. Built for Hibernate 5.1 and JDK 1.8
* 1.2 released 2017-07-24
* Support different ID column names in entities ([#1](https://github.com/grimsa/hibernate-single-table-bulk-id-strategy/issues/1))
* 1.1 released 2016-09-29
* Update to support Hibernate 5.2
* 1.0 released 2016-09-29
* Initial version built for Hibernate 5.1 and JDK 1.8
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.github.grimsa.hibernate</groupId>
<artifactId>single-table-bulk-id-strategy</artifactId>
<version>1.2-SNAPSHOT</version>
<version>1.2</version>

<name>${project.groupId}:${project.artifactId}</name>
<description>Single Table Bulk ID Strategy for Hibernate</description>
Expand Down Expand Up @@ -123,7 +123,7 @@
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>false</autoReleaseAfterClose>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>
</plugins>
Expand Down

0 comments on commit 582ec4c

Please sign in to comment.