Skip to content

Commit

Permalink
Removed hibernate plugin & hibernate class dependency completely. Closes
Browse files Browse the repository at this point in the history
  • Loading branch information
Shashank Agrawal committed Apr 7, 2014
1 parent a7831ed commit 311878a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,8 @@ target
plugin.xml
.idea
*.log
/web-app/WEB-INF
/web-app/WEB-INF
.classpath
.project
.settings/*
target-eclipse/**
6 changes: 1 addition & 5 deletions grails-app/conf/BuildConfig.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,7 @@ grails.project.dependency.resolution = {

plugins {

compile ':quartz:1.0-RC4'

compile(":hibernate:$grailsVersion") {
export = false
}
compile ':quartz:1.0.1'

build ':release:2.2.1', ':rest-client-builder:1.0.3', {
export = false
Expand Down
5 changes: 2 additions & 3 deletions src/groovy/grails/plugins/quartz/QuartzDisplayJob.groovy
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package grails.plugins.quartz

import org.quartz.Job
import org.hibernate.SessionFactory
import org.quartz.JobExecutionContext
import org.quartz.JobExecutionException

Expand All @@ -11,9 +10,9 @@ import org.quartz.JobExecutionException
class QuartzDisplayJob implements Job {
GrailsJobFactory.GrailsJob job
Map<String, Object> jobDetails
private SessionFactory sessionFactory
private def sessionFactory

QuartzDisplayJob(GrailsJobFactory.GrailsJob job, Map<String, Object> jobDetails, SessionFactory sessionFactory) {
QuartzDisplayJob(GrailsJobFactory.GrailsJob job, Map<String, Object> jobDetails, def sessionFactory) {
this.job = job
this.jobDetails = jobDetails
this.sessionFactory = sessionFactory
Expand Down

0 comments on commit 311878a

Please sign in to comment.