Migrated entity persistence to hibernate.