Generate hibernate config