lundi 3 mars 2014

scala Play! object persistence is not a member of package javax


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

Rei

6





Aucun commentaire:

Enregistrer un commentaire