@Test public void mergeWithNull() { firstUser.merge(null); assertThat(firstUser.getId().getSearchId(), is(1L)); assertThat(firstUser.getId().getUserId(), is(1L)); assertThat(firstUser.getCanEdit(), is(true)); assertThat(firstUser.getModifiedDate(), is(ZonedDateTime.parse(firstDateTime))); assertThat(firstUser.getSharedDate(), is(ZonedDateTime.parse(firstDateTime))); }
public void merge(final SharedToUser other) { if (other != null) { sharedDate = other.sharedDate == null ? sharedDate : other.sharedDate; } }
SharedToUser { public void merge(final SharedToUser other) { if (other != null) { sharedDate = other.sharedDate == null ? sharedDate : other.sharedDate; } } }
SharedToUser { public void merge(final SharedToUser other) { if (other != null) { sharedDate = other.sharedDate == null ? sharedDate : other.sharedDate; } } private  SharedToUser(final SharedToUser.SharedToUserBuilder builder); }
SharedToUser { public void merge(final SharedToUser other) { if (other != null) { sharedDate = other.sharedDate == null ? sharedDate : other.sharedDate; } } private  SharedToUser(final SharedToUser.SharedToUserBuilder builder); void merge(final SharedToUser other); }
SharedToUser { public void merge(final SharedToUser other) { if (other != null) { sharedDate = other.sharedDate == null ? sharedDate : other.sharedDate; } } private  SharedToUser(final SharedToUser.SharedToUserBuilder builder); void merge(final SharedToUser other); @EmbeddedId
    public SharedToUserPK id; }