Skip to content

Commit

Permalink
#50 remove attestationcount
Browse files Browse the repository at this point in the history
  • Loading branch information
dwerning authored May 3, 2024
2 parents 6ba0bea + 2b42359 commit 6ca5494
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 159 deletions.
23 changes: 15 additions & 8 deletions src/main/java/tla/domain/dto/LemmaDto.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
import tla.domain.model.SentenceToken;
import tla.domain.model.SentenceToken.Glyphs;
import tla.domain.model.SentenceToken.Lemmatization;
import tla.domain.model.extern.AttestedTimespan;
import tla.domain.model.meta.BTSeClass;

/**
Expand Down Expand Up @@ -57,19 +56,27 @@ public class LemmaDto extends NamedDocumentDto {
@Singular
private List<SentenceToken> words;

@Singular
private List<AttestedTimespan> attestations;

private AttestedTimespan.Period timeSpan;
private int attestedSentencesCount;

public static class TimeSpan{
/** first year */
@Setter
@Getter
private int begin;
/** last year */
@Setter
@Getter
private int end;
}

private TimeSpan timeSpan;

public LemmaDto() {
this.glyphs=new Glyphs();
this.transcription=new Transcription();
this.translations = Collections.emptySortedMap();
this.words = Collections.emptyList();

this.attestations = Collections.emptyList();
}
}
@Getter
@Setter
@EqualsAndHashCode
Expand Down
151 changes: 0 additions & 151 deletions src/main/java/tla/domain/model/extern/AttestedTimespan.java

This file was deleted.

0 comments on commit 6ca5494

Please sign in to comment.