- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {StringBuilder s =
new StringBuilder()
new StringBuilder(32)
String str;new StringBuilder(str)
- Smart code suggestions by Codota
}
@PreRemove public void removeConferenceRef() { if(conference != null) { conference.removeSession(this); } } }
@Override public void remove(Session entity) { Conference conf = conferenceRepository.getConferenceBySessionId(entity.getId()); if(conf != null) { conf.removeSession(entity); } sessions.remove(entity); }
@Test @UsingDataSet({ "conference.yml", "session.yml" }) @ShouldMatchDataSet({ "conference.yml", "session_empty.yml" }) public void shouldBeAbleToRemoveConferenceWithSession() { Conference conference = repository.get("CA"); Session session = conference.getSessions().toArray(new Session[0])[0]; conference.removeSession(session); repository.store(conference); }