package sn.unitech.stock.dao;
import javax.persistence.EntityManager;
import sn.unitech.stock.dao.iface.ISysPieceDao;
import sn.unitech.stock.entity.SysPiece;
public class SysPieceDao extends DataAccess<SysPiece> implements ISysPieceDao<SysPiece> {
public SysPieceDao() {
// TODO Auto-generated constructor stub
}
public static void main(String[] args) {
// TODO Auto-generated method stub
SysPiece piece=new SysPiece();
piece.setLibelle("fffk");
System.out.println(new SysPieceDao().persist(piece,null));
}
@Override
public int count(String jpql, EntityManager em) {
// TODO Auto-generated method stub
return 0;
}
}