/**
 * Project Distributed Transactions.
 * Copyright Michał Szczygieł, 2013.
 * Created at Jan 2, 2014.
 */
package com.m4gik.business.dao;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

import com.m4gik.business.model.WarehousePoland;

/**
 * 
 * This class represent implementation for Data Access Object.
 * 
 * @author m4gik <michal.szczygiel@wp.pl>
 * 
 */
public class WarehousePolandDAOImpl implements WarehousePolandDAO {

    @PersistenceContext(unitName = "PersistenceUnitWarehousePoland")
    private EntityManager entityManager;

    /**
     * The persistence context needed to persist entity identity as a unique
     * entity instance. This method overrides an existing method.
     * 
     * @see com.m4gik.business.dao.WarehousePolandDAO#persistEmployee(com.m4gik.business.model.WarehousePoland)
     */
    @Override
    public void persistEmployee(WarehousePoland warehousePoland)
            throws Exception {
        entityManager.persist(warehousePoland);
    }

}

Add implementation for WarehousePolandDAO