mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
FIX for ManyToOne targetType & OSGI MANIFEST
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
package com.avaje.tests.basic;
|
||||
|
||||
import org.junit.Test;
|
||||
|
||||
import com.avaje.ebean.BaseTestCase;
|
||||
import com.avaje.ebean.Ebean;
|
||||
import com.avaje.tests.model.basic.ResetBasicData;
|
||||
import com.avaje.tests.model.interfaces.Address;
|
||||
import com.avaje.tests.model.interfaces.IAddress;
|
||||
import com.avaje.tests.model.interfaces.IPerson;
|
||||
import com.avaje.tests.model.interfaces.Person;
|
||||
|
||||
public class TestManyOneInterface extends BaseTestCase {
|
||||
|
||||
@Test
|
||||
public void test() {
|
||||
|
||||
ResetBasicData.reset();
|
||||
|
||||
IAddress a = new Address();
|
||||
|
||||
IPerson p = new Person();
|
||||
|
||||
p.setDefaultAddress(a);
|
||||
|
||||
Ebean.save(a);
|
||||
Ebean.save(p);
|
||||
|
||||
//Assert.assertTrue();
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user