Address ad2=new Address();
ad1.setCity("Pune");
You are setting the city pune
to address1
,instead of address2
try changing it as
Address ad2=new Address();
ad2.setCity("Pune");
UPDATE
Your user table adrees column is null because there is no mapped field in your pojo for address anyways your way of database schema design is wrong implementing onetomany relationship. Please check here One to Many Hibernate for proper way