Which annotation is used to mark a class as an entity listener in JPA?
Java MCQ: Which annotation is used to mark a class as an entity listener in JPA? a) @EntityListener b) @Entity c) @Listener d) @EntityListeners Answer: d) @EntityListeners Explanation: The @EntityListeners annotation in JPA is used to mark a class or method as an entity listener. Entity listeners are used to intercept entity lifecycle events such […]
Which annotation is used to mark a class as an entity listener in JPA? Read More »