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