Skip to content

Commit

Permalink
Merge pull request #19 from sbxcloud/annotationlib
Browse files Browse the repository at this point in the history
fecth two level
  • Loading branch information
lgguzman authored Mar 31, 2017
2 parents a5c2846 + 3fd6a38 commit b11a66c
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public class SbxMagicComposer {
public static Object getSbxModel(JSONObject jsonObject, Class<?> clazz, int level)throws Exception{
level++;
//accept only two level
if (level==3)
if (level==4)
return null;
if(!SbxDataValidator.hasKeyAnnotation(clazz)){
throw new SbxModelException("SbxKey is required");
Expand Down Expand Up @@ -168,7 +168,7 @@ public static Object getSbxModel(JSONObject jsonObject, Class<?> clazz, int lev
public static void getSbxModel(JSONObject jsonObject, Class<?> clazz, Object o, int level)throws Exception{
level++;
//accept only two level
if (level==3)
if (level==4)
return ;
if(!SbxDataValidator.hasKeyAnnotation(clazz)){
throw new SbxModelException("SbxKey is required");
Expand Down Expand Up @@ -311,7 +311,7 @@ public static void getSbxModel(JSONObject jsonObject, Class<?> clazz, Object o,
public static void getSbxModel(JSONObject jsonObject, Class<?> clazz, Object o, int level, JSONObject fetches)throws Exception{
level++;
//accept only two level
if (level==3)
if (level==4)
return ;
if(!SbxDataValidator.hasKeyAnnotation(clazz)){
throw new SbxModelException("SbxKey is required");
Expand Down Expand Up @@ -466,7 +466,7 @@ public static void getSbxModel(JSONObject jsonObject, Class<?> clazz, Object o,
public static Object getSbxModel(JSONObject jsonObject, Class<?> clazz, int level, JSONObject fetches)throws Exception{
level++;
//accept only two level
if (level==3)
if (level==4)
return null;
if(!SbxDataValidator.hasKeyAnnotation(clazz)){
throw new SbxModelException("SbxKey is required");
Expand Down

0 comments on commit b11a66c

Please sign in to comment.