Grooves Gorm

Integration with Grails' GORM API

License

License

Categories

Categories

ORM Data
GroupId

GroupId

com.github.rahulsom
ArtifactId

ArtifactId

grooves-gorm
Last Version

Last Version

0.6.1
Release Date

Release Date

Type

Type

jar
Description

Description

Grooves Gorm
Integration with Grails' GORM API
Project URL

Project URL

https://github.com/rahulsom/grooves
Source Code Management

Source Code Management

https://github.com/rahulsom/grooves

Download grooves-gorm

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.rahulsom/grooves-gorm/ -->
<dependency>
    <groupId>com.github.rahulsom</groupId>
    <artifactId>grooves-gorm</artifactId>
    <version>0.6.1</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.rahulsom/grooves-gorm/
implementation 'com.github.rahulsom:grooves-gorm:0.6.1'
// https://jarcasting.com/artifacts/com.github.rahulsom/grooves-gorm/
implementation ("com.github.rahulsom:grooves-gorm:0.6.1")
'com.github.rahulsom:grooves-gorm:jar:0.6.1'
<dependency org="com.github.rahulsom" name="grooves-gorm" rev="0.6.1">
  <artifact name="grooves-gorm" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.rahulsom', module='grooves-gorm', version='0.6.1')
)
libraryDependencies += "com.github.rahulsom" % "grooves-gorm" % "0.6.1"
[com.github.rahulsom/grooves-gorm "0.6.1"]

Dependencies

compile (1)

Group / Artifact Type Version
com.github.rahulsom : grooves-groovy jar 0.6.1

runtime (3)

Group / Artifact Type Version
io.reactivex : rxjava jar 1.3.8
io.reactivex : rxjava-reactive-streams jar 1.2.1
io.reactivex.rxjava2 : rxjava jar 2.2.3

test (1)

Group / Artifact Type Version
org.spockframework : spock-core jar 1.2-groovy-2.4

Project Modules

There are no modules declared in this project.

Build Status License codecov

Grooves

Event Sourcing Library for Java.

Grooves formerly meant Groovy Event Sourcing. In its present form, it can support just about any JVM language. Examples and tests include Java, Groovy and Kotlin. Documentation can be found here.

Modules

grooves-gorm

badge

This is for you if you’re using GORM for persistence. It has interfaces that need to know the domain object used, and build flexible queries without forcing you to write the code to read domain objects from the database.

grooves-groovy

badge

This is for you if you want to write your queries in groovy, but are not using GORM. You will have to implement your own data access, but will get support for checking completeness of queries based on groovy AST Transformations.

grooves-java

badge

This is for you if you want to write your queries in java. You will have to implement your own data access, but will get support for checking completeness of queries based on Annotation Processors.

grooves-api

badge

This is for you if you are not using groovy or java, or don’t care about verifying completeness of queries. For example, you could use this for writing code with Kotlin.

grooves-types

badge

This contains types that are used in grooves-api. It is very unlikely you’ll be using this directly.

grooves-diagrams

badge

This is an asciidoctor extension that allows you to generate diagrams like those in grooves' documentation.

Examples

examples/grails/rdbms

This uses grails (with groovy) backed by Hibernate (through GORM).

examples/springboot/jpa

This uses Springboot and JPA repositories for everything. All the code is written in groovy.

examples/springboot/kotlin

This uses Spring Reactive Web and RxMongo repositories for everything. All the code is written in kotlin.

examples/javaee

This uses Java and JavaEE for the APIs. The persistence here is completely made up using a few List objects. The reason for that is to show how you don’t have to be tied to any one persistence mechanism.

examples/pushstyle

This uses Kotlin and Guava EventBus. The snapshots are persisted using jOOQ. The events are never persisted. They are processed as they come on the EventBus.

Releasing

  • Ensure environment variable GRGIT_USER is populated

  • Ensure ~/.gradle/gradle.properties has these properties

    • signing.keyId

    • signing.password

    • nexusUsername

    • nexusPassword

  • Tag the version

  • Run this command

    ./gradlew -Prelease.useLastTag=true -Dorg.gradle.parallel=false <candidate|final>

Versions

Version
0.6.1
0.6.1-rc.2
0.6.1-rc.1
0.6.0
0.5.0
0.4.0
0.3.0
0.2.1
0.2.0-dev.84+3e05045
0.2.0-dev.83.uncommitted+7010fd5
0.2.0
0.1.1