java - function of getHibernateTemplate().flush() -


i new hibernate. please tell me use of gethibernatetemplate().flush() , how works.

when using hibernate, entities loaded persistence context called session , changes creating, updating, deleting persistent objects made in memory. when want or need synchronize in memory state database make changes persistent, need flush session, causing hibernate generate appropriate sql insert, update, delete statements.


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

gdi+ - WxWidgets draw a bitmap with opacity -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -