Just a note, since Scala 2.8, the annotation syntax has changed. The above example won't work anymore. Here is an updated model I am using:
@Entity
@Table( name="Foo" )
class Foo{
@Id
var id:Int = 0
@Column(name="title")
var name:String = null
}
Notice the Parens instead of the Brackets and there are no more val declarations needed.