We are using Ebean + JPA annotations in 2.3. I am now upgrading to 2.4, and I am getting confusing compile errors.
My class is
package models;
import javax.persistence.Column;
import javax.persistence.Embeddable;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.MapsId;
import javax.persistence.Table;
import com.avaje.ebean.Model;
@Entity
@Table(name="reading")
public class Reading extends Model {
@EmbeddedId
public ReadingPK key;
@MapsId("id")
@JoinColumn(name="sensorid")
@ManyToOne
public Sensor sensor;
....
}
The compiler is complaining that it cannot find a "MapsId" class:
[error] /afs/inf.ed.ac.uk/user/m/mdzikovs/research/ideal/software/gui/play-upgrade-branch/app/models/Reading.java:9: cannot find symbol
[error] symbol: class MapsId
[error] location: package javax.persistence
I tried Google, but with no success, and given that this worked in 2.3, I don't even know where to begin looking at the problem. Is there some way to get extra debug information out of SBT? Or has there been some change in JPA api that i am not aware of?
Thanks
Myrosia