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