/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.wjs.ebj;

import com.wjs.entity.Punishment;
import com.wjs.comm.SuperEJB;
import java.util.List;
import javax.ejb.LocalBean;
import javax.ejb.Stateless;

/**
 *
 * @author C0160
 */
@Stateless
@LocalBean
public class PunishmentBean extends SuperEJB<Punishment> {

    public PunishmentBean() {
        this.className = "Punishment";
    }

    @Override
    public List<Punishment> getByPId(String value) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public Punishment getPrevById(String value) {
        Punishment entity = super.getPrevById(value);
        if (entity == null) {
            entity = new Punishment(0, "没有了");
        }
        return entity;
    }

    @Override
    public Punishment getNextById(String value) {
        Punishment entity = super.getNextById(value);
        if (entity == null) {
            entity = new Punishment(0, "没有了");
        }
        return entity;
    }

}
