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#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

c# - Making TableLayoutPanel Act Like An HTML Table (Cells That Resize Automatically Around Text) -