@Test public void itShouldInsertWithoutRegistration() { RunHibernateEntity entity = buildUnsavedRun(); entity.setRegistration(null); daoTestRule.inTransaction(() -> dao.create(entity)); }
@Override public void create(RunHibernateEntity entity) { persist(entity); }
RunDao extends BaseHibernateEntityDao<RunHibernateEntity> { @Override public void create(RunHibernateEntity entity) { persist(entity); } }
RunDao extends BaseHibernateEntityDao<RunHibernateEntity> { @Override public void create(RunHibernateEntity entity) { persist(entity); } @Inject  RunDao(SessionFactory sessionFactory); }
RunDao extends BaseHibernateEntityDao<RunHibernateEntity> { @Override public void create(RunHibernateEntity entity) { persist(entity); } @Inject  RunDao(SessionFactory sessionFactory); @Override void create(RunHibernateEntity entity); @Override List<RunHibernateEntity> findAll(); @Override RunHibernateEntity findById(String id); RunHibernateEntity findLastInSequenceFor(EventHibernateEntity event); RunHibernateEntity findFirstInSequenceWithoutRawTime(EventHibernateEntity event); List<RunHibernateEntity> getAllWith(EventHibernateEntity event); List<RunHibernateEntity> getAllWith(RegistrationHibernateEntity registration); }
RunDao extends BaseHibernateEntityDao<RunHibernateEntity> { @Override public void create(RunHibernateEntity entity) { persist(entity); } @Inject  RunDao(SessionFactory sessionFactory); @Override void create(RunHibernateEntity entity); @Override List<RunHibernateEntity> findAll(); @Override RunHibernateEntity findById(String id); RunHibernateEntity findLastInSequenceFor(EventHibernateEntity event); RunHibernateEntity findFirstInSequenceWithoutRawTime(EventHibernateEntity event); List<RunHibernateEntity> getAllWith(EventHibernateEntity event); List<RunHibernateEntity> getAllWith(RegistrationHibernateEntity registration);  }