日期:2014-05-17 浏览次数:20664 次
//点击提交评论增加评价列表commit
public void submitCommit(Commitcontent commit){
hibernateTemplate.save(commit);
System.out.println("aaa");
}
public Serializable save(final Object entity) throws DataAccessException {
return executeWithNativeSession(new HibernateCallback<Serializable>() {
public Serializable doInHibernate(Session session) throws HibernateException {
checkWriteOperationAllowed(session);
return session.save(entity);
}
});
}