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

cccev.projection.api.entity.unit.DataUnitEntity.kt Maven / Gradle / Ivy

package cccev.projection.api.entity.unit

import cccev.projection.api.entity.NodeLabel
import cccev.s2.unit.domain.DataUnitId
import cccev.s2.unit.domain.DataUnitIdentifier
import cccev.s2.unit.domain.DataUnitState
import cccev.s2.unit.domain.model.DataUnitType
import org.springframework.data.annotation.CreatedDate
import org.springframework.data.annotation.Id
import org.springframework.data.annotation.LastModifiedDate
import org.springframework.data.annotation.Version
import org.springframework.data.neo4j.core.schema.Node
import s2.dsl.automate.model.WithS2Id
import s2.dsl.automate.model.WithS2State

@Node(NodeLabel.DATA_UNIT)
data class DataUnitEntity(
    @Id
    val id: DataUnitId,
    val identifier: DataUnitIdentifier,
    @Version
    var version: Long = 0,
    @CreatedDate
    var creationDate: Long = 0,
    @LastModifiedDate
    var lastModificationDate: Long = 0,
    val status: DataUnitState,
    val name: String,
    val description: String,
    val notation: String? = null,
    val type: DataUnitType
): WithS2Id, WithS2State {

    override fun s2Id() = id
    override fun s2State() = status
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy