Declaring Hibernate event listeners in a JPA environment

前端 未结 4 1962
陌清茗
陌清茗 2021-02-09 04:24

Hy guys,

I am working on a project developed in Java EE 5 environment. I want to know how I can declare a Hibernate event listener so that I can be informed when CRUD op

4条回答
  •  死守一世寂寞
    2021-02-09 05:09

    In your persistence.xml:

    
        
            ...
            
            ...
            
                    
            
        
    
    

    In the Hibernate EntityManager docs look at "Table 2.1. Hibernate Entity Manager specific properties" for all applicable properties.

提交回复
热议问题