|
| 1 | +package ch.puzzle.okr.models.evaluation; |
| 2 | + |
| 3 | +import jakarta.persistence.EmbeddedId; |
| 4 | +import jakarta.persistence.Entity; |
| 5 | +import org.hibernate.annotations.Immutable; |
| 6 | + |
| 7 | +@Entity |
| 8 | +@Immutable |
| 9 | +public class EvaluationView { |
| 10 | + @EmbeddedId |
| 11 | + private EvaluationViewId evaluationViewId; |
| 12 | + |
| 13 | + private int objectiveAmount; |
| 14 | + private int completedObjectivesAmount; |
| 15 | + private int successfullyCompletedObjectivesAmount; |
| 16 | + |
| 17 | + private int keyResultAmount; |
| 18 | + private int keyResultsOrdinalAmount; |
| 19 | + private int keyResultsMetricAmount; |
| 20 | + private int keyResultsInTargetOrStretchAmount; |
| 21 | + |
| 22 | + private int keyResultsInFailAmount; |
| 23 | + private int keyResultsInCommitAmount; |
| 24 | + private int keyResultsInTargetAmount; |
| 25 | + private int keyResultsInStretchAmount; |
| 26 | + |
| 27 | + public EvaluationViewId getEvaluationViewId() { |
| 28 | + return evaluationViewId; |
| 29 | + } |
| 30 | + |
| 31 | + public int getObjectiveAmount() { |
| 32 | + return objectiveAmount; |
| 33 | + } |
| 34 | + |
| 35 | + public int getCompletedObjectivesAmount() { |
| 36 | + return completedObjectivesAmount; |
| 37 | + } |
| 38 | + |
| 39 | + public int getSuccessfullyCompletedObjectivesAmount() { |
| 40 | + return successfullyCompletedObjectivesAmount; |
| 41 | + } |
| 42 | + |
| 43 | + public int getKeyResultAmount() { |
| 44 | + return keyResultAmount; |
| 45 | + } |
| 46 | + |
| 47 | + public int getKeyResultsOrdinalAmount() { |
| 48 | + return keyResultsOrdinalAmount; |
| 49 | + } |
| 50 | + |
| 51 | + public int getKeyResultsMetricAmount() { |
| 52 | + return keyResultsMetricAmount; |
| 53 | + } |
| 54 | + |
| 55 | + public int getKeyResultsInTargetOrStretchAmount() { |
| 56 | + return keyResultsInTargetOrStretchAmount; |
| 57 | + } |
| 58 | + |
| 59 | + public int getKeyResultsInFailAmount() { |
| 60 | + return keyResultsInFailAmount; |
| 61 | + } |
| 62 | + |
| 63 | + public int getKeyResultsInCommitAmount() { |
| 64 | + return keyResultsInCommitAmount; |
| 65 | + } |
| 66 | + |
| 67 | + public int getKeyResultsInTargetAmount() { |
| 68 | + return keyResultsInTargetAmount; |
| 69 | + } |
| 70 | + |
| 71 | + public int getKeyResultsInStretchAmount() { |
| 72 | + return keyResultsInStretchAmount; |
| 73 | + } |
| 74 | +} |
0 commit comments