mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-09 16:43:17 +00:00
Add Expose support for Ebean entities.
can be applied to simple property, or One/ManyToMany association.
This commit is contained in:
1 parent
e0d9cc3662
commit
bb3ea76594
2 files changed
+24
-4
No files matched your search
@@ -754,7 +754,9 @@ public class BeanPropertyAssocMany<T> extends BeanPropertyAssoc<T> {
|
||||
}
|
||||
|
||||
public void jsonWrite(WriteJsonContext ctx, Object bean) {
|
||||
|
||||
if(!this.jsonSerialize){
|
||||
return;
|
||||
}
|
||||
Boolean include = ctx.includeMany(name);
|
||||
if (Boolean.FALSE.equals(include)){
|
||||
return;
|
||||
@@ -769,7 +771,9 @@ public class BeanPropertyAssocMany<T> extends BeanPropertyAssoc<T> {
|
||||
}
|
||||
|
||||
public void jsonRead(ReadJsonContext ctx, Object bean){
|
||||
|
||||
if(!this.jsonDeserialize){
|
||||
return;
|
||||
}
|
||||
if (!ctx.readArrayBegin()) {
|
||||
// the array is null
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user