mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-19 23:02:24 +00:00
#2154 - QueryBeans: TargetEntity is not evaluated during bean generation resulting in bad query beans
This commit is contained in:
1 parent
ab9cdd8f5b
commit
53aacabce7
6 files changed
+134
-27
No files matched your search
@@ -0,0 +1,35 @@
|
||||
package org.example.domain;
|
||||
|
||||
import org.example.domain.target.ACity;
|
||||
|
||||
import javax.persistence.CascadeType;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.OneToMany;
|
||||
import java.util.List;
|
||||
|
||||
@Entity
|
||||
public class AreaImpl {
|
||||
|
||||
@Id
|
||||
long id;
|
||||
|
||||
@OneToMany(targetEntity = CityImpl.class, cascade = CascadeType.ALL)
|
||||
List<ACity> cities;
|
||||
|
||||
public long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public List<ACity> getCities() {
|
||||
return cities;
|
||||
}
|
||||
|
||||
public void setCities(List<ACity> cities) {
|
||||
this.cities = cities;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user