Package pl.zgora.uz.wmie.fe.service.impl

Source Code of pl.zgora.uz.wmie.fe.service.impl.PracownikService

package pl.zgora.uz.wmie.fe.service.impl;

import java.util.ArrayList;
import java.util.List;

import org.hibernate.HibernateException;
import org.hibernate.Session;

import javax.ejb.Stateless;
import javax.ejb.TransactionAttribute;
import javax.ejb.TransactionAttributeType;
import javax.jws.WebService;


import pl.zgora.uz.wmie.fe.hbm.classes.Pracownik;

@Stateless
@TransactionAttribute(TransactionAttributeType.REQUIRED)
public class PracownikService extends BaseService<Pracownik, Integer>
implements pl.zgora.uz.wmie.fe.service.PracownikService {

  public String getImie(Integer id) throws Exception {
    String result="error";
    Pracownik pracownik=this.load(id);
    result=pracownik.getImie();
    return result;
  }

  public String getNazwisko(Integer id) throws Exception {
    String result="error";
    Pracownik pracownik=this.load(id);
    result=pracownik.getNazwisko();
    return result;
  }
 
}
TOP

Related Classes of pl.zgora.uz.wmie.fe.service.impl.PracownikService

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.