src/main/scala/fis/geo/model/Country.scala
author Tomas Zeman <tzeman@volny.cz>
Tue, 23 Apr 2013 10:36:04 +0200
changeset 108 ef4e3e0ef83f
parent 65 a35a0edf9ddd
permissions -rw-r--r--
84a94fa29a67504b Task/Project notifications

/*
 * Copyright 2011-2012 Tomas Zeman <tzeman@volny.cz>
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package fis.geo.model

import fis.base.model.Entity
import net.liftweb.common._
import net.liftweb.record.{MetaRecord, Record}
import net.liftweb.record.field._
import net.liftweb.util._
import net.tz.lift.model.{FieldLabel => FL}

class Country private() extends Record[Country] with Entity[Country] {
  def meta = Country

  val iso2 = new StringField(this, 2) with FL
  val iso3 = new StringField(this, 3) with FL
}

object Country extends Country with MetaRecord[Country] with 
  SimpleInjector {
  object countries extends Inject[Iterable[Country]](() => Nil)
}

// vim: set ts=2 sw=2 et: