Hibernate close method: close the session object
•
Java
close()
Example
Session session = sessionFactory.openSession(); //创建Session对象 if(session.isopen()){ //如果session对象为开启状态 session.close(); //关闭Session }
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码