Merge branch 'master' of github.com:ebean-orm/ebean

This commit is contained in:
rob bygrave
2019-02-04 11:55:04 +13:00
8 changed files with 16 additions and 3 deletions
@@ -203,6 +203,7 @@ public class TestBatchInsertFlush extends BaseTestCase {
}
@Test
@IgnorePlatform(Platform.SQLSERVER)
public void noflushWhenIdIsLoaded() {
EbeanServer server = Ebean.getDefaultServer();
@@ -5,12 +5,14 @@ import io.ebean.annotation.Cache;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.validation.constraints.Size;
@Entity
@Cache
public class PersonCacheEmail {
@Id
@Size(max=128)
private String id;
@ManyToOne
@@ -4,12 +4,14 @@ import io.ebean.annotation.Cache;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.validation.constraints.Size;
@Entity
@Cache
public class PersonCacheInfo {
@Id
@Size(max=128)
private String personId;
private String name;
@@ -2,6 +2,9 @@ package org.tests.model.onetoone;
import io.ebean.BaseTestCase;
import io.ebean.Ebean;
import io.ebean.annotation.IgnorePlatform;
import io.ebean.annotation.Platform;
import org.ebeantest.LoggedSqlCollector;
import org.junit.Test;
@@ -12,6 +15,7 @@ import static org.assertj.core.api.Assertions.assertThat;
public class TestOneToOneOrphanRemove extends BaseTestCase {
@Test
@IgnorePlatform(Platform.SQLSERVER)
public void base() {
OtoCust jack = new OtoCust("Jack");
+2
View File
@@ -4,8 +4,10 @@ import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
@Entity
@Table(name = "e_position")
public class Position {
@Id
@GeneratedValue