example simple : case class Group( id: Option[Id], category: Category, image: Option[FileResource] = None, updatedAt: LocalDateTime = NOW, createdAt: LocalDateTime = NOW ) extends EntityModel[Id] object Group { val Id = the[Identity[Id]] type Id = Long @@ GroupCommonIcon type WithNoId = Entity.WithNoId [Id, GroupCommonIcon] type EmbeddedId = Entity.EmbeddedId [Id, GroupCommonIcon] }
Tag: Spring boot