i have a list of objects i just want to save that objects using hibernate batch processing .below is the code that i have tried
public void create(List<TransArchive> transArchives) {
Session session = getCurrentSession();
Transaction tx = null;
tx = session.beginTransaction();
for (TransArchive transArchive : transArchives) {
session.save(transArchive);
} }
please help me to how to use batch processing in above code