mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
Fix test code only - Tune entity bean needs at least 1 non Id property
This commit is contained in:
@@ -15,11 +15,21 @@ public class Tune {
|
||||
|
||||
@Id
|
||||
@Column(name = "id")
|
||||
public Long _id;
|
||||
Long _id;
|
||||
|
||||
String name;
|
||||
|
||||
@OneToMany(cascade = CascadeType.ALL)
|
||||
private List<Looney> loonies = new BeanList<>();
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public List<Looney> getLoonies() {
|
||||
return loonies;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user