docs: @Override
  	public CommerceDiscountUserSegmentRel fetchByPrimaryKey(
  		Serializable primaryKey) {
  		Serializable serializable = entityCache.getResult(CommerceDiscountUserSegmentRelModelImpl.ENTITY_CACHE_ENABLED,
  				CommerceDiscountUserSegmentRelImpl.class, primaryKey);
  
  		if (serializable == nullModel) {
  			return null;
  		}
  
  		CommerceDiscountUserSegmentRel commerceDiscountUserSegmentRel = (CommerceDiscountUserSegmentRel)serializable;
  
  		if (commerceDiscountUserSegmentRel == null) {
  			Session session = null;
  
  			try {
  				session = openSession();
  
  				commerceDiscountUserSegmentRel = (CommerceDiscountUserSegmentRel)session.get(CommerceDiscountUserSegmentRelImpl.class,
  						primaryKey);
  
  				if (commerceDiscountUserSegmentRel != null) {
  					cacheResult(commerceDiscountUserSegmentRel);
  				}
  				else {
  					entityCache.putResult(CommerceDiscountUserSegmentRelModelImpl.ENTITY_CACHE_ENABLED,
  						CommerceDiscountUserSegmentRelImpl.class, primaryKey,
  						nullModel);
  				}
  			}
  			catch (Exception e) {
  				entityCache.removeResult(CommerceDiscountUserSegmentRelModelImpl.ENTITY_CACHE_ENABLED,
  					CommerceDiscountUserSegmentRelImpl.class, primaryKey);
  
  				throw processException(e);
  			}
  			finally {
  				closeSession(session);
  			}
  		}
  
  		return commerceDiscountUserSegmentRel;
  	}