Skip to content

gpc/grails-hibernate-filter

Repository files navigation

grails-hibernate-filter

Description

This is a fork of the original Grails Hibernate Filter Plugin created from fork alexkramer/grails-hibernate-filter to make it work with Grails 4.0.0 > *, Hibernate 5, and GORM 7.

This repo contains two projects:

  1. hibernate-filter-plugin - with plugin code
  2. hibernate-filter-example - with example application using plugin

Usage

Build Plugin File

Clone the repository and execute in main directory command:

./gradlew hibernate-filter-plugin:jar

You can publish it to your maven local repository using:

./gradlew hibernate-filter-plugin:publishToMavenLocal

Running example application

To run example application use command:

./gradlew hibernate-filter-example:bootRun

Installation

Add dependency in build.gradle:

for Grails < 3.x

repositories {
    maven { url "https://dl.bintray.com/goodstartgenetics/grails3-plugins/" }
}

dependencies {
    compile "org.grails.plugins:hibernate-filter-plugin:0.5.5"
}

for Grails 4.x

    repositories {
        maven { url "https://maven.pkg.github.com/vsachinv/grails-hibernate-filter" }
    }
    
    dependencies {
        compile "org.grails.plugins:hibernate-filter-plugin:4.0-M2"
    }

for Grails 5.x

    repositories {
        maven { url "https://maven.pkg.github.com/vsachinv/grails-hibernate-filter" }
    }
    
    dependencies {
        compile "org.grails.plugins:hibernate-filter-plugin:5.0-M1"
    }

Usage

Please refer to this project's wiki for usage.