adds hibernate generic methods