mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-10-21 17:50:37 +00:00
#2154 - Fix tests for QueryBeans: TargetEntity is not evaluated during bean generation resulting in bad query beans
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
package org.example.domain;
|
||||
|
||||
import org.example.domain.target.ACity;
|
||||
import org.example.domain.api.ACity;
|
||||
|
||||
import javax.persistence.CascadeType;
|
||||
import javax.persistence.Entity;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package org.example.domain;
|
||||
|
||||
import org.example.domain.target.ACity;
|
||||
import org.example.domain.target.ACountry;
|
||||
import org.example.domain.api.ACity;
|
||||
import org.example.domain.api.ACountry;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package org.example.domain;
|
||||
|
||||
import org.example.domain.target.ACountry;
|
||||
import org.example.domain.api.ACountry;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Id;
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
package org.example.domain.api;
|
||||
|
||||
public interface ACity {
|
||||
|
||||
long id();
|
||||
|
||||
String name();
|
||||
|
||||
ACountry country();
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package org.example.domain.api;
|
||||
|
||||
public interface ACountry {
|
||||
String code();
|
||||
}
|
||||
Reference in New Issue
Block a user