Skip to content

Instantly share code, notes, and snippets.

@brianhsu
Created January 9, 2010 13:02
Show Gist options
  • Save brianhsu/272882 to your computer and use it in GitHub Desktop.
Save brianhsu/272882 to your computer and use it in GitHub Desktop.
package org.maidroid.model
import net.liftweb.mapper._
import net.liftweb.common.Empty
import net.liftweb.sitemap.Loc._
import net.liftweb.http._
import scala.xml._
object Item extends Item with LongKeyedMetaMapper[Item]
with CRUDify[Long, Item]
class Item extends LongKeyedMapper[Item] with IdPK
{
def getSingleton = Item
object name extends MappedString (this, 100)
object desc extends MappedString (this, 100)
object sold extends MappedBoolean (this)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment