Hi All,
I am new to
EJB 3.0 , I am working on project which involves more than one insert ( entity-manager persists ) for child records.
I know batch update ,I tried for batch inserts using following method. After reading more about flush ie
If the flush mode is set to COMMIT, the persistence provider will
only synchronize with the database when the transaction commits.
So, after for following code there will be only
one call from ejb container to sql server for n inserts, this will also reduce the network traffic too.
Please let me know your comments.