mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#592 - Fetched empty collection of null child of parent entity
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
package com.avaje.tests.model.tevent;
|
||||
|
||||
import com.avaje.ebean.BaseTestCase;
|
||||
import com.avaje.ebean.Ebean;
|
||||
import org.junit.Test;
|
||||
|
||||
public class TestAssocOneNullTraverse extends BaseTestCase {
|
||||
|
||||
@Test
|
||||
public void test() {
|
||||
|
||||
TEvent event = new TEvent("event");
|
||||
Ebean.save(event);
|
||||
|
||||
Ebean.find(TEvent.class)
|
||||
.fetch("one.many")
|
||||
.findList();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user