mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-22 15:10:02 +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,24 @@
|
||||
package org.querytest;
|
||||
|
||||
import org.example.domain.query.QAreaImpl;
|
||||
import org.example.domain.query.QCityImpl;
|
||||
import org.junit.Test;
|
||||
|
||||
public class TargetTest {
|
||||
|
||||
@Test
|
||||
public void test_oneToMany() {
|
||||
|
||||
new QAreaImpl()
|
||||
.cities.fetch()
|
||||
.findList();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void test_manyToOne() {
|
||||
|
||||
new QCityImpl()
|
||||
.country.fetch()
|
||||
.findList();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user