Skip to content

Commit d9b1560

Browse files
Merge pull request #23 from thingsboard/noSettersForDiscriminatorField
Added pojo.mustache to not generate setters for discriminator fields
2 parents c8000a9 + 8cb9c72 commit d9b1560

833 files changed

Lines changed: 600 additions & 5461 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

ce/src/main/java/org/thingsboard/client/model/AdminSettingsId.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,6 @@ public class AdminSettingsId extends EntityId {
5656
public AdminSettingsId() {
5757
}
5858

59-
@Override
60-
public AdminSettingsId entityType(@Nonnull EntityType entityType) {
61-
this.setEntityType(entityType);
62-
return this;
63-
}
64-
6559
@Override
6660
public AdminSettingsId id(@Nonnull UUID id) {
6761
this.setId(id);

ce/src/main/java/org/thingsboard/client/model/AffectedTenantAdministratorsFilter.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
package org.thingsboard.client.model;
1717

1818
import javax.annotation.Generated;
19-
import javax.annotation.Nonnull;
2019
import java.net.URLEncoder;
2120
import java.nio.charset.StandardCharsets;
2221
import java.util.StringJoiner;
@@ -54,12 +53,6 @@ public class AffectedTenantAdministratorsFilter extends UsersFilter {
5453
public AffectedTenantAdministratorsFilter() {
5554
}
5655

57-
@Override
58-
public AffectedTenantAdministratorsFilter type(@Nonnull String type) {
59-
this.setType(type);
60-
return this;
61-
}
62-
6356
/**
6457
* Return true if this AffectedTenantAdministratorsFilter object is equal to o.
6558
*/

ce/src/main/java/org/thingsboard/client/model/AffectedUserFilter.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
package org.thingsboard.client.model;
1717

1818
import javax.annotation.Generated;
19-
import javax.annotation.Nonnull;
2019
import java.net.URLEncoder;
2120
import java.nio.charset.StandardCharsets;
2221
import java.util.StringJoiner;
@@ -54,12 +53,6 @@ public class AffectedUserFilter extends UsersFilter {
5453
public AffectedUserFilter() {
5554
}
5655

57-
@Override
58-
public AffectedUserFilter type(@Nonnull String type) {
59-
this.setType(type);
60-
return this;
61-
}
62-
6356
/**
6457
* Return true if this AffectedUserFilter object is equal to o.
6558
*/

ce/src/main/java/org/thingsboard/client/model/AggFunctionInput.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
package org.thingsboard.client.model;
1717

1818
import javax.annotation.Generated;
19-
import javax.annotation.Nonnull;
2019
import javax.annotation.Nullable;
2120
import java.net.URLEncoder;
2221
import java.nio.charset.StandardCharsets;
@@ -84,12 +83,6 @@ public void setFunction(@Nullable String function) {
8483
}
8584

8685

87-
@Override
88-
public AggFunctionInput type(@Nonnull String type) {
89-
this.setType(type);
90-
return this;
91-
}
92-
9386
/**
9487
* Return true if this AggFunctionInput object is equal to o.
9588
*/

ce/src/main/java/org/thingsboard/client/model/AggKeyInput.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
package org.thingsboard.client.model;
1717

1818
import javax.annotation.Generated;
19-
import javax.annotation.Nonnull;
2019
import javax.annotation.Nullable;
2120
import java.net.URLEncoder;
2221
import java.nio.charset.StandardCharsets;
@@ -84,12 +83,6 @@ public void setKey(@Nullable String key) {
8483
}
8584

8685

87-
@Override
88-
public AggKeyInput type(@Nonnull String type) {
89-
this.setType(type);
90-
return this;
91-
}
92-
9386
/**
9487
* Return true if this AggKeyInput object is equal to o.
9588
*/

ce/src/main/java/org/thingsboard/client/model/AiModelExportData.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
package org.thingsboard.client.model;
1717

1818
import javax.annotation.Generated;
19-
import javax.annotation.Nonnull;
2019
import javax.annotation.Nullable;
2120
import java.net.URLEncoder;
2221
import java.nio.charset.StandardCharsets;
@@ -88,12 +87,6 @@ public AiModelExportData calculatedFields(@Nullable List<CalculatedField> calcul
8887
return this;
8988
}
9089

91-
@Override
92-
public AiModelExportData entityType(@Nonnull EntityType entityType) {
93-
this.setEntityType(entityType);
94-
return this;
95-
}
96-
9790
/**
9891
* Return true if this AiModelExportData object is equal to o.
9992
*/

ce/src/main/java/org/thingsboard/client/model/AiModelId.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,6 @@ public class AiModelId extends EntityId {
5656
public AiModelId() {
5757
}
5858

59-
@Override
60-
public AiModelId entityType(@Nonnull EntityType entityType) {
61-
this.setEntityType(entityType);
62-
return this;
63-
}
64-
6559
@Override
6660
public AiModelId id(@Nonnull UUID id) {
6761
this.setId(id);

ce/src/main/java/org/thingsboard/client/model/AlarmAssignmentNotificationRuleTriggerConfig.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -214,12 +214,6 @@ public void setNotifyOn(@Nonnull Set<Action> notifyOn) {
214214
}
215215

216216

217-
@Override
218-
public AlarmAssignmentNotificationRuleTriggerConfig triggerType(@Nonnull NotificationRuleTriggerType triggerType) {
219-
this.setTriggerType(triggerType);
220-
return this;
221-
}
222-
223217
/**
224218
* Return true if this AlarmAssignmentNotificationRuleTriggerConfig object is equal to o.
225219
*/

ce/src/main/java/org/thingsboard/client/model/AlarmAssignmentRecipientsConfig.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717

1818
import javax.annotation.Generated;
1919
import javax.annotation.Nonnull;
20-
import javax.annotation.Nullable;
2120
import java.net.URLEncoder;
2221
import java.nio.charset.StandardCharsets;
2322
import java.util.StringJoiner;
@@ -96,12 +95,6 @@ public void setTargets(@Nonnull List<UUID> targets) {
9695
}
9796

9897

99-
@Override
100-
public AlarmAssignmentRecipientsConfig triggerType(@Nullable NotificationRuleTriggerType triggerType) {
101-
this.setTriggerType(triggerType);
102-
return this;
103-
}
104-
10598
/**
10699
* Return true if this AlarmAssignmentRecipientsConfig object is equal to o.
107100
*/

ce/src/main/java/org/thingsboard/client/model/AlarmCalculatedFieldConfiguration.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -295,12 +295,6 @@ public AlarmCalculatedFieldConfiguration output(@Nullable Output output) {
295295
return this;
296296
}
297297

298-
@Override
299-
public AlarmCalculatedFieldConfiguration type(@Nonnull String type) {
300-
this.setType(type);
301-
return this;
302-
}
303-
304298
/**
305299
* Return true if this AlarmCalculatedFieldConfiguration object is equal to o.
306300
*/

0 commit comments

Comments
 (0)