save
Device
@Modifying(clearAutomatically = true
)
@Query(value = "INSERT INTO " + DEVICES_KEY + " (" +
DEVICE_IDENTIFIER_KEY + "," +
BRAND_KEY + "," +
MODEL_KEY + "," +
OS_KEY + "," +
OS_VERSION_KEY +
") VALUES (" +
":" + DEVICE_IDENTIFIER_KEY + "," +
":" + BRAND_KEY + "," +
":" + MODEL_KEY + "," +
":" + OS_KEY + "," +
":" + OS_VERSION_KEY +
")",
nativeQuery = true
)
Method to save a new device in the system
Parameters
deviceId
The identifier of the device
brand
The brand of the device
model
The model of the device
os
The operating system of the device
osVersion
The version of the operating system of the device