package org.tests.model.array; import io.ebean.annotation.DbArray; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.Version; import java.util.LinkedHashSet; import java.util.Set; import java.util.UUID; @Entity public class EArraySetBean { @Id Long id; String name; @DbArray(length = 300) Set phoneNumbers = new LinkedHashSet<>(); @DbArray Set uids = new LinkedHashSet<>(); @DbArray Set otherIds = new LinkedHashSet<>(); @DbArray Set doubs; @Version Long version; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public Set getPhoneNumbers() { return phoneNumbers; } public void setPhoneNumbers(Set phoneNumbers) { this.phoneNumbers = phoneNumbers; } public Set getUids() { return uids; } public void setUids(Set uids) { this.uids = uids; } public Set getOtherIds() { return otherIds; } public void setOtherIds(Set otherIds) { this.otherIds = otherIds; } public Set getDoubs() { return doubs; } public void setDoubs(Set doubs) { this.doubs = doubs; } public Long getVersion() { return version; } public void setVersion(Long version) { this.version = version; } }