/**
   * Caches the EmpPersonalDetails in the entity cache if it is enabled.
   *
   * @param empPersonalDetails the EmpPersonalDetails
   */
  @Override
  public void cacheResult(EmpPersonalDetails empPersonalDetails) {
    EntityCacheUtil.putResult(
        EmpPersonalDetailsModelImpl.ENTITY_CACHE_ENABLED,
        EmpPersonalDetailsImpl.class,
        empPersonalDetails.getPrimaryKey(),
        empPersonalDetails);

    empPersonalDetails.resetOriginalValues();
  }
 /**
  * Caches the EmpPersonalDetailses in the entity cache if it is enabled.
  *
  * @param empPersonalDetailses the EmpPersonalDetailses
  */
 @Override
 public void cacheResult(List<EmpPersonalDetails> empPersonalDetailses) {
   for (EmpPersonalDetails empPersonalDetails : empPersonalDetailses) {
     if (EntityCacheUtil.getResult(
             EmpPersonalDetailsModelImpl.ENTITY_CACHE_ENABLED,
             EmpPersonalDetailsImpl.class,
             empPersonalDetails.getPrimaryKey())
         == null) {
       cacheResult(empPersonalDetails);
     } else {
       empPersonalDetails.resetOriginalValues();
     }
   }
 }