Library management using Hibernate