现在的位置: 首页 > 综合 > 正文

Hibernatec持久话对象生命周期

2013年11月08日 ⁄ 综合 ⁄ 共 545字 ⁄ 字号 评论关闭

 public class Computer implements LifeCycle{
       public boolean oonSave(Session s){
            System.out.println("in save");
            return false;
       }

        public boolean onUpdate(Session s) throws CallbackException{
            System.out.println("in update");
            return false;
       }
  

         public boolean onDelete(Session s) throws CallbackException{
            System.out.println("in delete");
            return false;
       }

         public boolean oo=nLoad(Session s,Serializable){
            System.out.println("in load");
            return false;
       }

抱歉!评论已关闭.