private Object getPersistedValues(final List<Entity> entities, final Type type) throws SBusinessDataNotFoundException { if (entities.isEmpty()) { return new ArrayList<Entity>(); } if (Type.AGGREGATION.equals(type)) { return businessDataRepository.findByIds(businessDataReloader.getEntityRealClass(entities.get(0)), getPrimaryKeys(entities)); } else { return entities; } }
private Object getPersistedValues(final List<Entity> entities, final Type type) throws SBusinessDataNotFoundException { if (entities.isEmpty()) { return new ArrayList<Entity>(); } if (Type.AGGREGATION.equals(type)) { return businessDataRepository.findByIds(businessDataReloader.getEntityRealClass(entities.get(0)), getPrimaryKeys(entities)); } else { return entities; } }
private Entity getPersistedValue(final Entity entity, final Type type) throws SBusinessDataNotFoundException { if (Type.AGGREGATION.equals(type)) { return businessDataReloader.reloadEntity(entity); } else { return entity; } }
private Entity getPersistedValue(final Entity entity, final Type type) throws SBusinessDataNotFoundException { if (Type.AGGREGATION.equals(type)) { return businessDataReloader.reloadEntity(entity); } else { return entity; } }