When i tried with the example given, only tables are created. But data is not inserted ...
I tried like this..
create a transaction object(tx) with the session i.e session.beginTransaction(). and then tx.commit() to commit the transaction. Then my data is updated and inserted in the table.