Created
April 20, 2009 14:37
-
-
Save ymnk/98561 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 net.liftweb.example.model | |
import com.google.appengine.api.datastore.Key | |
import java.util.Date | |
import javax.persistence._ | |
import org.hibernate.annotations.Type | |
@Entity | |
class Book { | |
@Id | |
@GeneratedValue(){val strategy = GenerationType.IDENTITY} | |
var id : Key = _ | |
@Column{val nullable = false} | |
var title : String = "" | |
@Column{val nullable = true} | |
var published : Date = new Date() | |
@Column{val nullable = true} | |
var genre : String = "unknown" | |
@Column{val nullable = false} | |
@ManyToOne | |
var author : Author = _ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment