Vote count:
1
I'm trying to make Scala application using play framework for interaction with database. But I am not good in this. I used tutorials: http://ift.tt/1fChcpm , http://ift.tt/1eW21kE But then I tried to make entity:
package models
import java.util._ import javax.persistence._
@Entity
@Table( name="persons" )
case class person(name: String, lastName: String, age: Int) {
@Id
@GeneratedValue( strategy = GenerationType.IDENTITY )
var id : Int = _
}
I got next errors: -object persistence is not a member of package javax -not found: type Entity -not found: type Table -not found: type Id -not found: type GeneratedValue
Can someone help me?
asked 1 min ago
Aucun commentaire:
Enregistrer un commentaire