#2154 - Fix tests for QueryBeans: TargetEntity is not evaluated during bean generation resulting in bad query beans

This commit is contained in:
rob bygrave
2021-02-10 19:25:42 +13:00
parent 2672dff512
commit 8ecc407cb0
5 changed files with 19 additions and 4 deletions
@@ -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();
}