register
Event
@Modifying(clearAutomatically = true
)
@Query(value = "INSERT INTO " + HOST_EVENTS_KEY + " (" +
IDENTIFIER_KEY + "," +
TYPE_KEY + "," +
EVENT_DATE_KEY + "," +
HOST_IDENTIFIER_KEY + ") VALUES (" +
":" + IDENTIFIER_KEY + "," +
":" + TYPE_KEY + "," +
":" + EVENT_DATE_KEY + "," +
":" + HOST_IDENTIFIER_KEY + ")",
nativeQuery = true
)
Query used to register a new event
Parameters
eventId
The identifier of the event
type
The type of the event
eventDate
The date when the event occurred
hostId
The identifier of the host owner of the event
@Modifying(clearAutomatically = true
)
@Query(value = "INSERT INTO " + HOST_EVENTS_KEY + " (" +
IDENTIFIER_KEY + "," +
TYPE_KEY + "," +
EVENT_DATE_KEY + "," +
EXTRA_KEY + "," +
HOST_IDENTIFIER_KEY + ") VALUES (" +
":" + IDENTIFIER_KEY + "," +
":" + TYPE_KEY + "," +
":" + EVENT_DATE_KEY + "," +
":" + EXTRA_KEY + "," +
":" + HOST_IDENTIFIER_KEY + ")",
nativeQuery = true
)
Query used to register a new event
Parameters
eventId
The identifier of the event
type
The type of the event
eventDate
The date when the event occurred
extra
The extra information related to the event
hostId
The identifier of the host owner of the event