#442 - @JsonIgnore / @Expose ... not working on @OneToMany or @ManyToMany - was - @Transient field on @MappedSuperclass is not ignored by toJson()

This commit is contained in:
Robin Bygrave committed 2015-10-28 09:10:19 +13:00
1 parent 3d62f58930
commit 67c711d75f
4 files changed
+47 -27

No files matched your search

@@ -1,6 +1,7 @@
package com.avaje.tests.model.info;
import com.avaje.ebean.Model;
import com.avaje.ebean.annotation.JsonIgnore;
import javax.persistence.*;
import java.util.ArrayList;
@@ -19,6 +20,7 @@ public class InfoCompany extends Model {
String name;
@JsonIgnore
@OneToMany(mappedBy = "company", cascade = CascadeType.ALL)
List<InfoContact> contacts = new ArrayList<InfoContact>();