/** * Adds the fields of the bean type represented by the given area as parameters to the given userPref. Fields without * the annotation UserPrefParameter will be ignored. * * @param userPref * @param area * @see #fillFromUserPrefParameters(UserPrefDO, Object) */ public void addUserPrefParameters(final UserPrefDO userPref, final UserPrefArea area) { addUserPrefParameters(userPref, area.getBeanType(), null); }
@Override public UserPrefDO internalGetById(final Serializable id) { final UserPrefDO userPref = super.internalGetById(id); if (userPref == null) { return null; } if (userPref.getArea() != null) { evaluateAnnotations(userPref, userPref.getArea().getBeanType()); } return userPref; }