disconnect
Device
@Modifying(clearAutomatically = true
)
@Query(value = ""DELETE FROM " + USER_DEVICES_KEY +
_WHERE_ + USER_IDENTIFIER_KEY + "=:" + USER_IDENTIFIER_KEY
+ " AND " + DEVICE_IDENTIFIER_KEY + "=:" + DEVICE_IDENTIFIER_KEY",
nativeQuery = true
)
Query used to disconnect a device from the session
Parameters
userId
The identifier of the user
deviceId
The identifier of the device