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

code.model.Cluster.scala Maven / Gradle / Ivy

The newest version!
package code.model

import com.homedepot.bigbricks.ui.HTMLCodeGenerator
import net.liftweb.mapper._

/**
  * The singleton that has methods for accessing the database
  */
object Cluster extends Cluster with LongKeyedMetaMapper[Cluster] {


  override def fieldOrder = List(clusterName, userName, password)

  formatFormElement = bsformFormElement


}

class Cluster extends LongKeyedMapper[Cluster] with IdPK with HTMLCodeGenerator {
  def getSingleton = Cluster

  // what's the "meta" server
  object clusterName extends MappedString(this, 100) {

    override def displayName = "Cluster name"

    override def toForm = addClassAttribute(super.toForm)


  }


  object userName extends MappedString(this, 25) {
    override def toForm = addClassAttribute(super.toForm)

    override def displayName = "User name"
  }

  object password extends MappedPassword(this) {
    override def toForm = addPasswordConfirm(super.toForm)

  }


}








© 2015 - 2025 Weber Informatics LLC | Privacy Policy