@ -139,11 +137,6 @@ public class DeviceProfile extends SearchTextBased<DeviceProfileId> implements H
returnsuper.getCreatedTime();
returnsuper.getCreatedTime();
}
}
@Override
publicStringgetSearchText(){
returngetName();
}
@ApiModelProperty(position=5,value="Used to mark the default profile. Default profile is used when the device profile is not specified during device creation.")
@ApiModelProperty(position=5,value="Used to mark the default profile. Default profile is used when the device profile is not specified during device creation.")
@ -82,11 +82,6 @@ public class EntityView extends SearchTextBasedWithAdditionalInfo<EntityViewId>
this.externalId=entityView.getExternalId();
this.externalId=entityView.getExternalId();
}
}
@Override
publicStringgetSearchText(){
returngetName()/*What the ...*/;
}
@ApiModelProperty(position=4,value="JSON object with Customer Id. Use 'assignEntityViewToCustomer' to change the Customer Id.",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
@ApiModelProperty(position=4,value="JSON object with Customer Id. Use 'assignEntityViewToCustomer' to change the Customer Id.",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
@ -112,11 +112,6 @@ public class AssetProfile extends SearchTextBased<AssetProfileId> implements Has
returnsuper.getCreatedTime();
returnsuper.getCreatedTime();
}
}
@Override
publicStringgetSearchText(){
returngetName();
}
@ApiModelProperty(position=5,value="Used to mark the default profile. Default profile is used when the asset profile is not specified during asset creation.")
@ApiModelProperty(position=5,value="Used to mark the default profile. Default profile is used when the asset profile is not specified during asset creation.")
@ -106,11 +106,6 @@ public class WidgetsBundle extends SearchTextBased<WidgetsBundleId> implements H
returnsuper.getCreatedTime();
returnsuper.getCreatedTime();
}
}
@Override
publicStringgetSearchText(){
returngetTitle();
}
@ApiModelProperty(position=3,value="Same as title of the Widget Bundle. Read-only field. Update the 'title' to change the 'name' of the Widget Bundle.",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
@ApiModelProperty(position=3,value="Same as title of the Widget Bundle. Read-only field. Update the 'title' to change the 'name' of the Widget Bundle.",accessMode=ApiModelProperty.AccessMode.READ_ONLY)
@Query("SELECT new OtaPackageInfoEntity(f.id, f.createdTime, f.tenantId, f.deviceProfileId, f.type, f.title, f.version, f.tag, f.url, f.fileName, f.contentType, f.checksumAlgorithm, f.checksum, f.dataSize, f.additionalInfo, CASE WHEN (f.data IS NOT NULL OR f.url IS NOT NULL) THEN true ELSE false END) FROM OtaPackageEntity f WHERE "+
@Query("SELECT new OtaPackageInfoEntity(f.id, f.createdTime, f.tenantId, f.deviceProfileId, f.type, f.title, f.version, f.tag, f.url, f.fileName, f.contentType, f.checksumAlgorithm, f.checksum, f.dataSize, f.additionalInfo, CASE WHEN (f.data IS NOT NULL OR f.url IS NOT NULL) THEN true ELSE false END) FROM OtaPackageEntity f WHERE "+
"f.tenantId = :tenantId "+
"f.tenantId = :tenantId "+
"AND LOWER(f.searchText) LIKE LOWER(CONCAT('%', :searchText, '%'))")
"AND LOWER(f.title) LIKE LOWER(CONCAT('%', :searchText, '%'))")