code: @Override
  	public CommercePriceListUserSegmentEntryRel fetchByPrimaryKey(
  		Serializable primaryKey) {
  		Serializable serializable = entityCache.getResult(CommercePriceListUserSegmentEntryRelModelImpl.ENTITY_CACHE_ENABLED,
  				CommercePriceListUserSegmentEntryRelImpl.class, primaryKey);
  
  		if (serializable == nullModel) {
  			return null;
  		}
  
  		CommercePriceListUserSegmentEntryRel commercePriceListUserSegmentEntryRel =
  			(CommercePriceListUserSegmentEntryRel)serializable;
  
  		if (commercePriceListUserSegmentEntryRel == null) {
  			Session session = null;
  
  			try {
  				session = openSession();
  
  				commercePriceListUserSegmentEntryRel = (CommercePriceListUserSegmentEntryRel)session.get(CommercePriceListUserSegmentEntryRelImpl.class,
  						primaryKey);
  
  				if (commercePriceListUserSegmentEntryRel != null) {
  					cacheResult(commercePriceListUserSegmentEntryRel);
  				}
  				else {
  					entityCache.putResult(CommercePriceListUserSegmentEntryRelModelImpl.ENTITY_CACHE_ENABLED,
  						CommercePriceListUserSegmentEntryRelImpl.class,
  						primaryKey, nullModel);
  				}
  			}
  			catch (Exception e) {
  				entityCache.removeResult(CommercePriceListUserSegmentEntryRelModelImpl.ENTITY_CACHE_ENABLED,
  					CommercePriceListUserSegmentEntryRelImpl.class, primaryKey);
  
  				throw processException(e);
  			}
  			finally {
  				closeSession(session);
  			}
  		}
  
  		return commercePriceListUserSegmentEntryRel;
  	}
docs: Returns the commerce price list user segment entry rel with the primary key or returns <code>null</code> if it could not be found.
  
  @param primaryKey the primary key of the commerce price list user segment entry rel
  @return the commerce price list user segment entry rel, or <code>null</code> if a commerce price list user segment entry rel with the primary key could not be found