Created
January 9, 2010 13:02
-
-
Save brianhsu/272882 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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