mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-28 23:28:55 +00:00
#442 - @JsonIgnore / @Expose ... not working on @OneToMany or @ManyToMany - was - @Transient field on @MappedSuperclass is not ignored by toJson()
This commit is contained in:
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>();
|
||||
|
||||
|
||||
Reference in new issue
Block a user