This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import io.scalac.inventory.db.{Office, CanonicalForm} | |
import net.fwbrasil.activate.entity.Entity | |
object Domain { | |
.... | |
sealed case class Item(val name: String, val code: Long, var office: Office) | |
class ItemEntity(val name: String, val code: Long, var inOffice: OfficeEntity) extends Entity { | |
... | |
def codeMustBeUnique = unique(_.code) | |
} | |
.... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment