关联对象:
@One(target = Menu.class, field = "menuId")
private Menu menu;
@At("/queryMenu")
public Object queryMenu(Integer roleId){
return roleMenuService.query(null).get(0).getMenu();
}
2016-5-26 13:1:54.385 DEBUG [http-nio-8081-exec-2] SELECT * FROM t_wf_role_menu
2016-5-26 13:1:55.3 WARN [http-nio-8081-exec-2] Error@/queryMenu :
java.lang.StackOverflowError
at org.nutz.aop.InterceptorChain.doChain(InterceptorChain.java:56)
at cn.uwf.bean.wf.RoleMenu$$NUTZAOP.getMenu(RoleMenu.java:1)
at cn.uwf.bean.wf.RoleMenu.hashCode(RoleMenu.java:12)
at java.util.WeakHashMap.hash(WeakHashMap.java:298)
at java.util.WeakHashMap.get(WeakHashMap.java:396)
at org.nutz.dao.impl.ext.LazyAnnotationEntityMaker$LazyMethodInterceptor.filter(LazyAnnotationEntityMaker.java:129)
at org.nutz.aop.InterceptorChain.doChain(InterceptorChain.java:60)
at cn.uwf.bean.wf.RoleMenu$$NUTZAOP.getMenu(RoleMenu.java:1)
at cn.uwf.bean.wf.RoleMenu.hashCode(RoleMenu.java:12)
at java.util.WeakHashMap.hash(WeakHashMap.java:298)
at java.util.WeakHashMap.get(WeakHashMap.java:396)
at org.nutz.dao.impl.ext.LazyAnnotationEntityMaker$LazyMethodInterceptor.filter(LazyAnnotationEntityMaker.java:129)
at org.nutz.aop.InterceptorChain.doChain(InterceptorChain.java:60)
at cn.uwf.bean.wf.RoleMenu$$NUTZAOP.getMenu(RoleMenu.java:1)
at cn.uwf.bean.wf.RoleMenu.hashCode(RoleMenu.java:12)
at java.util.WeakHashMap.hash(WeakHashMap.java:298)
at java.util.WeakHashMap.get(WeakHashMap.java:396)
at org.nutz.dao.impl.ext.LazyAnnotationEntityMaker$LazyMethodInterceptor.filter(LazyAnnotationEntityMaker.java:129)
at org.nutz.aop.InterceptorChain.doChain(InterceptorChain.java:60)
at cn.uwf.bean.wf.RoleMenu$$NUTZAOP.getMenu(RoleMenu.java:1)
at cn.uwf.bean.wf.RoleMenu.hashCode(RoleMenu.java:12)
at java.util.WeakHashMap.hash(WeakHashMap.java:298)
at java.util.WeakHashMap.get(WeakHashMap.java:396)
at org.nutz.dao.impl.ext.LazyAnnotationEntityMaker$LazyMethodInterceptor.filter(LazyAnnotationEntityMaker.java:129)
at org.nutz.aop.InterceptorChain.doChain(InterceptorChain.java:60)
at cn.uwf.bean.wf.RoleMenu$$NUTZAOP.getMenu(RoleMenu.java:1)
at cn.uwf.bean.wf.RoleMenu.hashCode(RoleMenu.java:12)
at java.util.WeakHashMap.hash(WeakHashMap.java:298)
at java.util.WeakHashMap.get(WeakHashMap.java:396)
at org.nutz.dao.impl.ext.LazyAnnotationEntityMaker$LazyMethodInterceptor.filter(LazyAnnotationEntityMaker.java:129)
at org.nutz.aop.InterceptorChain.doChain(InterceptorChain.java:60)
at cn.uwf.bean.wf.RoleMenu$$NUTZAOP.getMenu(RoleMenu.java:1)
at cn.uwf.bean.wf.RoleMenu.hashCode(RoleMenu.java:12)
at java.util.WeakHashMap.hash(WeakHashMap.java:298)
at java.util.WeakHashMap.get(WeakHashMap.java:396)
at org.nutz.dao.impl.ext.LazyAnnotationEntityMaker$LazyMethodInterceptor.filter(LazyAnnotationEntityMaker.java:129)
at org.nutz.aop.InterceptorChain.doChain(InterceptorChain.java:60)
at cn.uwf.bean.wf.RoleMenu$$NUTZAOP.getMenu(RoleMenu.java:1)
at cn.uwf.bean.wf.RoleMenu.hashCode(RoleMenu.java:12)
at java.util.WeakHashMap.hash(WeakHashMap.java:298)
at java.util.WeakHashMap.get(WeakHashMap.java:396)
at org.nutz.dao.impl.ext.LazyAnnotationEntityMaker$LazyMethodInterceptor.filter(LazyAnnotationEntityMaker.java:129)
at org.nutz.aop.InterceptorChain.doChain(InterceptorChain.java:60)
at cn.uwf.bean.wf.RoleMenu$$NUTZAOP.getMenu(RoleMenu.java:1)
at cn.uwf.bean.wf.RoleMenu.hashCode(RoleMenu.java:12)
at java.util.WeakHashMap.hash(WeakHashMap.java:298)
at java.util.WeakHashMap.get(WeakHashMap.java:396)
at org.nutz.dao.impl.ext.LazyAnnotationEntityMaker$LazyMethodInterceptor.filter(LazyAnnotationEntityMaker.java:129)
at org.nutz.aop.InterceptorChain.doChain(InterceptorChain.java:60)
at cn.uwf.bean.wf.RoleMenu$$NUTZAOP.getMenu(RoleMenu.java:1)
at cn.uwf.bean.wf.RoleMenu.hashCode(RoleMenu.java:12)
at java.util.WeakHashMap.hash(WeakHashMap.java:298)
at java.util.WeakHashMap.get(WeakHashMap.java:396)
at org.nutz.dao.impl.ext.LazyAnnotationEntityMaker$LazyMethodInterceptor.filter(LazyAnnotationEntityMaker.java:129)
at org.nutz.aop.InterceptorChain.doChain(InterceptorChain.java:60)
at cn.uwf.bean.wf.RoleMenu$$NUTZAOP.getMenu(RoleMenu.java:1)
at cn.uwf.bean.wf.RoleMenu.hashCode(RoleMenu.java:12)
at java.util.WeakHashMap.hash(WeakHashMap.java:298)
at java.util.WeakHashMap.get(WeakHashMap.java:396)
at org.nutz.dao.impl.ext.LazyAnnotationEntityMaker$LazyMethodInterceptor.filter(LazyAnnotationEntityMaker.java:129)
at org.nutz.aop.InterceptorChain.doChain(InterceptorChain.java:60)