接口 CommonDao(公共Dao提供增删改查方法 save)

save

java.io.Serializable save(java.lang.Object entity)
                          throws java.lang.Exception

保存po对象.

参数:

entity - po对象实例

返回:

抛出:

java.lang.Exception

public Serializable  save(final Object entity)throws Exception{
         return sessionFactory.getCurrentSession().save(entity); 
   } 

猜你喜欢

转载自blog.csdn.net/gongjian0321/article/details/89003469