Skip to content
Snippets Groups Projects
Pad.scala 998 B
Newer Older
  • Learn to ignore specific revisions
  • package de.tobias.playpad.server.project
    
    import java.util.UUID
    
    
    import de.tobias.playpad.server.json._
    
    import de.tobias.playpad.server.project.settings.PadSettings
    
    import de.tobias.playpad.server.sql.{ColumnName, ForeignKey, Id, Table}
    
    Tobias Ullerich's avatar
    Tobias Ullerich committed
     * Created by tobias on 17.02.17.
     */
    
    @Table("Pad")
    
    	@JsonName(value = "id", handler = classOf[UUIDSerializerHandler])
    
    	@Id
    	@ColumnName("id")
    
    	var id: UUID = UUID.randomUUID()
    
    
    	@JsonName("name")
    
    	@ColumnName("name")
    
    	@JsonName(value = "position", handler = classOf[IntSerializerHandler])
    
    	@ColumnName("position")
    
    	@JsonName("contentType")
    
    	@ColumnName("content_type")
    
    	var contentType: String = _
    
    	@JsonCollection(value = "paths", `type` = classOf[Path])
    
    	@JsonObj("settings")
    	var padSettings: PadSettings = _
    
    	@JsonParent
    
    	@ForeignKey
    
    
    
    	override def toString = s"Pad($id, $name, $position, $contentType, $paths, $padSettings, $page)"