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
@@ -143,7 +143,7 @@ public class DtoQueryFromOrmTest extends BaseTestCase {
if (isSqlServer()) {
assertThat(sql.get(0)).contains("select top 10 t0.email, " + concat("t0.last_name", ", ", "t0.first_name")
+ " fullName from contact t0 where t0.email is not null and t0.last_name is not null order by t0.last_name");
+ " fullName from contact t0 where t0.email is not null and t0.last_name is not null order by t0.last_name");
} else {
assertThat(sql.get(0)).contains("select t0.email, " + concat("t0.last_name", ", ", "t0.first_name")
@@ -175,7 +175,7 @@ public class DtoQueryFromOrmTest extends BaseTestCase {
if (isSqlServer()) {
assertThat(sql.get(0)).contains("select top 10 t0.id, t0.email, "
+ concat("t0.last_name", ", ", "t0.first_name")
+ " fullName from contact t0 where t0.email is not null and t0.last_name is not null order by t0.last_name");
+ " fullName from contact t0 where t0.email is not null and t0.last_name is not null order by t0.last_name");
} else {
assertThat(sql.get(0)).contains("select t0.id, t0.email, " + concat("t0.last_name", ", ", "t0.first_name")
+ " fullName from contact t0 where t0.email is not null and t0.last_name is not null order by t0.last_name");
@@ -364,6 +364,7 @@ public class EqlParserTest extends BaseTestCase {
}
@Test
@IgnorePlatform(Platform.SQLSERVER)
public void selectFetchFetchLimit() {
Query<Customer> query = parse("select name fetch billingAddress (line1, city) fetch shippingAddress (line1) limit 10");
@@ -392,6 +393,7 @@ public class EqlParserTest extends BaseTestCase {
}
@Test
@IgnorePlatform(Platform.SQLSERVER)
public void selectFetchFetchManyPropertiesLimit() {
ResetBasicData.reset();
@@ -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