package Dao;
import hib.HibernateSessionFactory;
import java.util.List;
import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.Transaction;
import po.TbManager;
import po.TbUser;
import util.HibernateUtil;
public class TbManagerDao {
public boolean saveInfo(TbManager manager){
Session s = null;
Transaction tx = null;//
try{
s = HibernateSessionFactory.getSession();//获取Session
tx=s.beginTransaction();//开始事务commit,rollback
s.save(manager);//P294