protected Class<?> chooseReferrerPropertyAccessType(DBMeta referrerDbm, boolean oneToOne) { final Class<?> propertyType; if (oneToOne) { // basically no way propertyType = referrerDbm.getEntityType(); } else { final Class<?> listType = getReferrerPropertyListType(); propertyType = listType != null ? listType : List.class; } return propertyType; }
protected Class<?> chooseForeignPropertyAccessType(DBMeta foreignDbm, Class<?> specifiedType) { return specifiedType != null ? specifiedType : foreignDbm.getEntityType(); // basically default, or specified Optional }