Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

How to activate an entity listener for all entities

<entity-mappings>
    <persistence-unit-metadata>
        <persistence-unit-defaults>
            <entity-listeners>
                <entity-listener class="org.thoughts.on.java.model.MyEntityListener"/>
            </entity-listeners>
        </persistence-unit-defaults>
    </persistence-unit-metadata>
</entity-mappings>
Source by thorben-janssen.com #
 
PREVIOUS NEXT
Tagged: #How #activate #entity #listener #entities
ADD COMMENT
Topic
Name
9+8 =