Hello!
We using Batch editing Grid from springdemos and unfortunatelly, after pressing "Save changes" data doesn't insert from jsp to database (if you reload page, it will save, but if you open your database, you can't see any changes).
We find a piece of code (using debug), where we come, when we want to save (commit) changes (it's model "ProductDao"):
@Override
public void saveOrUpdate(List<Product> products) {
Session session = sessionFactory.getCurrentSession();
for (Product product : products) {
session.saveOrUpdate(product);
}
}
So what do we need to write here to commit changes to database?