openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cil-Gamir <hannes.visa...@rmb.co.za>
Subject Re: Locking Exception after Persisting new entity
Date Thu, 12 Nov 2009 16:27:01 GMT

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.

Mime
View raw message