Fully migrated plugin to hibernate4