Example2 is for hibernate