Skip to content

Commit

Permalink
chore: Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack-Golding committed Jan 15, 2025
1 parent 2077a15 commit 8a1019d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 16 deletions.
15 changes: 0 additions & 15 deletions service/grails-app/domain/org/olf/Serial.groovy
Original file line number Diff line number Diff line change
@@ -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<Serial> {

// TODO Remove commented properties before merging
String id
// Date lastUpdated
// Date dateCreated
String description

@CategoryId(defaultInternal=true)
Expand All @@ -45,11 +35,8 @@ class Serial extends RulesetOwner implements MultiTenant<Serial> {

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'
Expand All @@ -58,8 +45,6 @@ class Serial extends RulesetOwner implements MultiTenant<Serial> {

static constraints = {
orderLine nullable: true
// lastUpdated nullable: true
// dateCreated nullable: true
serialStatus nullable: true
description nullable: true
serialRulesets nullable: true, validator: { Collection<SerialRuleset> s_rulesets, _obj, Errors errors ->
Expand Down
2 changes: 1 addition & 1 deletion service/grails-app/domain/org/olf/SerialRuleset.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -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<SerialRuleset> {

Expand Down

0 comments on commit 8a1019d

Please sign in to comment.