Example #1
0
 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;
 }
Example #2
0
 protected Class<?> chooseForeignPropertyAccessType(DBMeta foreignDbm, Class<?> specifiedType) {
   return specifiedType != null
       ? specifiedType
       : foreignDbm.getEntityType(); // basically default, or specified Optional
 }