예제 #1
0
 // 非持久化属性.
 @Transient
 @SuppressWarnings("unchecked")
 public List<Integer> getRoleIds() throws Exception {
   return ReflectionUtils.fetchElementPropertyToList(roles, "id");
 }
예제 #2
0
 // 非持久化属性.
 @Transient
 public String getRoleNames() throws Exception {
   return ReflectionUtils.fetchElementPropertyToString(roles, "name", ", ");
 }