Add Expose support for Ebean entities.

can be applied to simple property, or One/ManyToMany association.
This commit is contained in:
outersky committed 2012-10-24 22:35:02 +08:00
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;