Add getIdClass()
Replace deprected queryForInt calls, support @GeneratedValue (auto increment) for primary keys
Initial import