attributes.remove(HIDDEN);
attributes.put(REQUIRED, TRUE);
}
if (config != null && config.getAnnotationLookup() != null) {
final AnnotationLookup annotationLookup = config.getAnnotationLookup();
if (attributes.containsKey(REVERSE_PRIMARY_KEY_TYPE) && null != annotationLookup) {
try {
final String reverseKey = annotationLookup.getFieldName(Id.class, attributes.get(REVERSE_PRIMARY_KEY_TYPE));
attributes.put(REVERSE_PRIMARY_KEY, reverseKey);
} catch (Exception e) {
throw new RuntimeException("cannot resolve reverse primary key", e);
}
}