Persist keys using Hibernate