All Downloads are FREE. Search and download functionalities are using the official Maven repository.

yakworks.rally.orgs.model.ContactSource.groovy Maven / Gradle / Ivy

There is a newer version: 7.3.77
Show newest version
/*
* Copyright 2021 Yak.Works - Licensed under the Apache License, Version 2.0 (the "License")
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
*/
package yakworks.rally.orgs.model

import gorm.tools.model.SourceTrait
import gorm.tools.repository.RepoLookup
import gorm.tools.repository.model.RepoEntity
import grails.compiler.GrailsCompileStatic
import grails.persistence.Entity
import yakworks.rally.orgs.repo.ContactSourceRepo
import yakworks.security.audit.AuditStamp

@Entity
@AuditStamp
@GrailsCompileStatic
class ContactSource implements SourceTrait, RepoEntity, Serializable {

    Long contactId
    String sourceVersion //edit sequence number from the source system.

    static constraintsMap = [
        contactId:[ description: 'The id of the contact this is for', nullable: false],
        sourceVersion:[ nullable: true],
    ]

    static ContactSourceRepo getRepo() { RepoLookup.findRepo(this) as ContactSourceRepo }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy