fingo/grails-hibernate-filter


http://grails.org/plugin/hibernate-filter

Download


Step 1. Add the JitPack repository to your build file

Add it in your root settings.gradle at the end of repositories:

	dependencyResolutionManagement {
		repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
		repositories {
			mavenCentral()
			maven { url 'https://jitpack.io' }
		}
	}

Add it in your settings.gradle.kts at the end of repositories:

	dependencyResolutionManagement {
		repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
		repositories {
			mavenCentral()
			maven { url = uri("https://jitpack.io") }
		}
	}

Add to pom.xml

	<repositories>
		<repository>
		    <id>jitpack.io</id>
		    <url>https://jitpack.io</url>
		</repository>
	</repositories>

Add it in your build.sbt at the end of resolvers:

 
    resolvers += "jitpack" at "https://jitpack.io"
        
    

Add it in your project.clj at the end of repositories:

 
    :repositories [["jitpack" "https://jitpack.io"]]
        
    

Step 2. Add the dependency

	dependencies {
		implementation 'com.github.fingo:grails-hibernate-filter:-SNAPSHOT'
	}
	dependencies {
		implementation("com.github.fingo:grails-hibernate-filter:-SNAPSHOT")
	}
	<dependency>
	    <groupId>com.github.fingo</groupId>
	    <artifactId>grails-hibernate-filter</artifactId>
	    <version>-SNAPSHOT</version>
	</dependency>

                            
    libraryDependencies += "com.github.fingo" % "grails-hibernate-filter" % "-SNAPSHOT"
        
        

                            
    :dependencies [[com.github.fingo/grails-hibernate-filter "-SNAPSHOT"]]
        
        

Readme


grails-hibernate-filter

Description

This is a fork of the original Grails Hibernate Filter Plugin created from fork appcela/grails-hibernate-plugin to make it work with the Grails 3 and Hibernate 4.

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

Use plugin in your application

Add dependency in build.gradle:

compile "org.grails.plugins:grails-hibernate-filter:0.2.0"

Configure dataSource in application.yml

configClass: org.grails.plugin.hibernate.filter.HibernateFilterDomainConfiguration

Usage

Please refer to the official Grails Hibernate Filter Plugin for usage.

Continuous integration server

Build Status