A activerecord patterns implementations for java with hibernate