Skip to content

Commit

Permalink
Remove reference at feature level. Stats retrieval should be from Sta…
Browse files Browse the repository at this point in the history
…tsRepository
  • Loading branch information
zhilingc committed Apr 15, 2020
1 parent ca1c50c commit 8538198
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions core/src/main/java/feast/core/model/Feature.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import feast.core.FeatureSetProto.FeatureSpec;
import feast.types.ValueProto.ValueType;
import java.util.Arrays;
import java.util.List;
import java.util.Objects;
import javax.persistence.*;
import javax.persistence.Entity;
Expand All @@ -31,9 +30,6 @@
@Entity
public class Feature extends Field {

@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY)
private List<FeatureStatistics> statistics;

public Feature() {}

public Feature(FieldId fieldId) {
Expand Down Expand Up @@ -114,10 +110,6 @@ public static Feature fromProto(FeatureSpec featureSpec) {
return feature;
}

public void addStatistics(FeatureStatistics newStatistic) {
this.statistics.add(newStatistic);
}

@Override
public boolean equals(Object o) {
if (this == o) {
Expand Down

0 comments on commit 8538198

Please sign in to comment.