Skip to content

Commit 44ca43d

Browse files
fix: use integer values in enum during query on Digital Twins
1 parent 2617f3a commit 44ca43d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/env/infrastructure/digitaltwins/DigitalTwinManager.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,8 @@ public final Optional<ActuatorID> findActuatorInRoom(final ActuatorType actuator
9898
"T",
9999
ActuatorAdtPresentation.HAS_ACTUATOR_RELATIONSHIP
100100
).where("T.$dtId = '" + roomID.getId() + "'")
101-
.and("CT.type = '"
101+
.and("CT.type = "
102102
+ ActuatorAdtPresentation.toActuatorDigitalTwinType(actuatorType)
103-
+ "'"
104103
).toQuery(),
105104
String.class).stream()
106105
.findFirst()

0 commit comments

Comments
 (0)