mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#1893 - Failing test for @DbArray with @NotNull
This commit is contained in:
@@ -2,6 +2,7 @@ package org.tests.model.array;
|
||||
|
||||
|
||||
import io.ebean.annotation.DbArray;
|
||||
import io.ebean.annotation.NotNull;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Id;
|
||||
@@ -28,7 +29,7 @@ public class EArrayBean {
|
||||
@DbArray(length = 300)
|
||||
List<String> phoneNumbers = new ArrayList<>();
|
||||
|
||||
@DbArray
|
||||
@DbArray @NotNull
|
||||
List<UUID> uids = new ArrayList<>();
|
||||
|
||||
@DbArray
|
||||
|
||||
@@ -172,7 +172,6 @@ public class TestDbArray_basic extends BaseTestCase {
|
||||
bean.setName("some nulls");
|
||||
bean.setPhoneNumbers(null);
|
||||
bean.setOtherIds(null);
|
||||
bean.setUids(null);
|
||||
|
||||
Ebean.save(bean);
|
||||
Ebean.delete(bean);
|
||||
|
||||
Reference in New Issue
Block a user