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