How to send messages from server to client?

前端 未结 6 834
轮回少年
轮回少年 2021-02-08 13:12

I am going to implement something similar to Facebook notification and this website (StackOverflow\'s notification which is notifying us if anyone write a comment/answer etc for

6条回答
  •  心在旅途
    2021-02-08 13:39

    but after session.save(user) the aftersave method does not get triggered.

    • @PostPersist is a JPA callback.
    • session.save() is a non-JPA, hibernate proprietary method. JPA uses entityManager.persist().
    • you're using incompatible features

提交回复
热议问题