Browse Source

Was added asigning value to of 'searchText' field into constructors

pull/1053/head
viktorbasanets 8 years ago
parent
commit
7009cbd8ac
  1. 1
      dao/src/main/java/org/thingsboard/server/dao/model/nosql/EntityViewEntity.java
  2. 2
      dao/src/main/java/org/thingsboard/server/dao/model/sql/EntityViewEntity.java

1
dao/src/main/java/org/thingsboard/server/dao/model/nosql/EntityViewEntity.java

@ -116,6 +116,7 @@ public class EntityViewEntity implements SearchTextEntity<EntityView> {
} }
this.tsBegin = String.valueOf(entityView.getTsBegin()); this.tsBegin = String.valueOf(entityView.getTsBegin());
this.tsEnd = String.valueOf(entityView.getTsEnd()); this.tsEnd = String.valueOf(entityView.getTsEnd());
this.searchText = entityView.getSearchText();
this.additionalInfo = entityView.getAdditionalInfo(); this.additionalInfo = entityView.getAdditionalInfo();
} }

2
dao/src/main/java/org/thingsboard/server/dao/model/sql/EntityViewEntity.java

@ -39,7 +39,6 @@ import javax.persistence.Entity;
import javax.persistence.Table; import javax.persistence.Table;
import java.io.IOException; import java.io.IOException;
import java.util.List; import java.util.List;
import java.util.UUID;
import java.util.stream.Collectors; import java.util.stream.Collectors;
/** /**
@ -110,6 +109,7 @@ public class EntityViewEntity extends BaseSqlEntity<EntityView> implements Searc
} }
this.tsBegin = String.valueOf(entityView.getTsBegin()); this.tsBegin = String.valueOf(entityView.getTsBegin());
this.tsEnd = String.valueOf(entityView.getTsEnd()); this.tsEnd = String.valueOf(entityView.getTsEnd());
this.searchText = entityView.getSearchText();
this.additionalInfo = entityView.getAdditionalInfo(); this.additionalInfo = entityView.getAdditionalInfo();
} }

Loading…
Cancel
Save