toggle menu
exposed
0.56.0
jvm
switch theme
search in API
exposed-dao
/
org.jetbrains.exposed.dao
/
EntityHook
/
subscribe
subscribe
fun
subscribe
(
action
:
(
EntityChange
)
->
Unit
)
:
(
EntityChange
)
->
Unit
Registers a specific state-change
action
for alerts and returns the
action
.
Samples
org.jetbrains.exposed.sql.tests.shared.entities.EntityHookTest.testCallingFlushNotifiesEntityHookSubscribers