Пример #1
0
 /** {@inheritDoc} */
 @Override
 public List<String> getBusinessKeyAttributeNames() {
   // If we have business keys, use that
   if (businessKeyAttributeNames != null) {
     return businessKeyAttributeNames;
   }
   // Otherwise, if we have an explicit PK, use that
   if (primaryKeyAttributeNames != null) {
     return primaryKeyAttributeNames;
   }
   // If neither has been set, go up the chain
   if (embedded != null) {
     return embedded.getBusinessKeyAttributeNames();
   }
   return Collections.emptyList();
 }