This is a service class between the front end and the DAO

package za.co.rmb.rac.riskRatingEngineWeb.service;

import java.util.List;
import za.co.rmb.rac.riskRatingEngineWeb.dao.RiskRatingDAO;
import za.co.rmb.rac.riskRatingEngineWeb.entities.Variable;

/**
 * 
 * @author JHV
 */
public class VariableService {

    private RiskRatingDAO dao;

    public VariableService() {
        dao = RiskRatingDAO.getInstance();
    }

    public void createVariable(Variable variable) {
        dao.create(variable);
    }

    public void updateVariable(Variable variable) {
        dao.update(variable);
    }
-- 
View this message in context: 
http://n2.nabble.com/Re-SOLVED-Re-Locking-Exception-after-Persisting-new-entity-tp3992651p3993926.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Reply via email to