From 8a1019d78b3f5ae3ad7beca66c03eb4f754e6820 Mon Sep 17 00:00:00 2001 From: Jack Golding Date: Wed, 15 Jan 2025 00:44:35 +0000 Subject: [PATCH] chore: Linting --- service/grails-app/domain/org/olf/Serial.groovy | 15 --------------- .../domain/org/olf/SerialRuleset.groovy | 2 +- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/service/grails-app/domain/org/olf/Serial.groovy b/service/grails-app/domain/org/olf/Serial.groovy index 665494c..0bc2b61 100644 --- a/service/grails-app/domain/org/olf/Serial.groovy +++ b/service/grails-app/domain/org/olf/Serial.groovy @@ -1,27 +1,17 @@ package org.olf -import org.olf.recurrence.Recurrence - import grails.compiler.GrailsCompileStatic import grails.gorm.MultiTenant -import org.hibernate.Session -import org.hibernate.internal.SessionImpl import com.k_int.web.toolkit.refdata.CategoryId import com.k_int.web.toolkit.refdata.Defaults import com.k_int.web.toolkit.refdata.RefdataValue import org.springframework.validation.Errors -import groovy.sql.Sql - - @GrailsCompileStatic class Serial extends RulesetOwner implements MultiTenant { - // TODO Remove commented properties before merging String id - // Date lastUpdated - // Date dateCreated String description @CategoryId(defaultInternal=true) @@ -45,11 +35,8 @@ class Serial extends RulesetOwner implements MultiTenant { static mapping = { id column: 's_id', generator: 'uuid2', length: 36 - // lastUpdated column: 's_last_updated' - // dateCreated column: 's_date_created' serialStatus column: 's_serial_status' description column: 's_description' - // version column: 's_version' orderLine cascade: 'all-delete-orphan' serialRulesets cascade: 'all-delete-orphan' @@ -58,8 +45,6 @@ class Serial extends RulesetOwner implements MultiTenant { static constraints = { orderLine nullable: true - // lastUpdated nullable: true - // dateCreated nullable: true serialStatus nullable: true description nullable: true serialRulesets nullable: true, validator: { Collection s_rulesets, _obj, Errors errors -> diff --git a/service/grails-app/domain/org/olf/SerialRuleset.groovy b/service/grails-app/domain/org/olf/SerialRuleset.groovy index bc8ef06..703ddbf 100644 --- a/service/grails-app/domain/org/olf/SerialRuleset.groovy +++ b/service/grails-app/domain/org/olf/SerialRuleset.groovy @@ -15,7 +15,7 @@ import com.k_int.web.toolkit.refdata.RefdataValue import groovy.sql.Sql - +// TODO With the addition of a RulesetOwner super class, this should be renamed to just Ruleset (or something similar) @GrailsCompileStatic class SerialRuleset implements MultiTenant {