-
Sub-task
-
Resolution: Done
-
Major
-
2.12.1.Final
-
None
It would be good to be able to create a new JPA listener. A basic command could just be :
jpa-new-listener --named MyListener
This will generate the following code :
class MyListener {
}
Then we would add as many lifecycle events as needed, something like :
jpa-new-listener --named MyListener --lifecycle PRE_PERSIST, POST_UPDATE, POST_REMOVE
class MyListener { @PrePersist private void prePersist(Object object) { } @PostUpdate private void postUpdate(Object object) { } @PostRemove private void postRemove(Object object) { } }
- is related to
-
FORGE-2094 Being able to add a listener when creating a new JPA entity
- Open