@Test public void itShouldCreateWithMultipleHandicapGroups() { daoTestRule.inTransaction(() -> { HandicapGroupHibernateEntity ssEntity = HibernateEntityTestUtils.fullHandicapGroup( null, "SS", BigDecimal.valueOf(0.826d) ); entityDao.create(ssEntity); HandicapGroupHibernateEntity asEntity = HibernateEntityTestUtils.fullHandicapGroup( null, "AS", BigDecimal.valueOf(0.819d) ); entityDao.create(asEntity); HandicapGroupHibernateEntity bsEntity = HibernateEntityTestUtils.fullHandicapGroup( null, "BS", BigDecimal.valueOf(0.813d) ); entityDao.create(bsEntity); HandicapGroupSetHibernateEntity setEntity = HibernateEntityTestUtils.fullHandicapGroupSet( null, "2017 PAX/RTP INDEX", Sets.newHashSet(ssEntity, asEntity, bsEntity) ); setDao.create(setEntity); }); }
@Override public void create(HandicapGroupSetHibernateEntity entity) { persist(entity); }
HandicapGroupSetDao extends BaseHibernateEntityDao<HandicapGroupSetHibernateEntity> { @Override public void create(HandicapGroupSetHibernateEntity entity) { persist(entity); } }
HandicapGroupSetDao extends BaseHibernateEntityDao<HandicapGroupSetHibernateEntity> { @Override public void create(HandicapGroupSetHibernateEntity entity) { persist(entity); } @Inject  HandicapGroupSetDao(SessionFactory sessionFactory); }
HandicapGroupSetDao extends BaseHibernateEntityDao<HandicapGroupSetHibernateEntity> { @Override public void create(HandicapGroupSetHibernateEntity entity) { persist(entity); } @Inject  HandicapGroupSetDao(SessionFactory sessionFactory); @Override void create(HandicapGroupSetHibernateEntity entity); @Override List<HandicapGroupSetHibernateEntity> findAll(); @Override HandicapGroupSetHibernateEntity findById(String id); }
HandicapGroupSetDao extends BaseHibernateEntityDao<HandicapGroupSetHibernateEntity> { @Override public void create(HandicapGroupSetHibernateEntity entity) { persist(entity); } @Inject  HandicapGroupSetDao(SessionFactory sessionFactory); @Override void create(HandicapGroupSetHibernateEntity entity); @Override List<HandicapGroupSetHibernateEntity> findAll(); @Override HandicapGroupSetHibernateEntity findById(String id);  }