I've a very simple problem which I would like a simple solution but it seems there isn't a default approach on JPA/Hibernate I've an BasicEntity whic ...
I've a very simple problem which I would like a simple solution but it seems there isn't a default approach on JPA/Hibernate I've an BasicEntity whic ...
I'm trying to compare an entity before and after an update. The idea is to check whether a specific column has been updated and process that data. Thi ...
I'm trying to make call to repository inside my Entity Listener, when I call repository.findById() method inside my @prePersist method the same method ...
I would like to make complex validations when save or update an Entity. For example I'd like to check is one of the entity's property is unique, but t ...
I would like a custom entity listener to generate an auto-incremented alias for a few of the entities. I have implemented one util class in order to ...
I am facing dependency cycle in my following design (taken from here). I have 2 entities Post and PostLog. When Post is created, I want to persist it ...
Possible Duplicated I have this weird bug in my Java Desktop Application, when i use @PrePersist and @PreUpdate all the code from the callback method ...
I'm trying to inject a bean into an entity listener in a Quarkus-application: But service is always null. Changing scope to @SessionScoped has no e ...
I need to send a request to other microService once the object got created in the database. I only send the object id so other microService needs to c ...
I am trying to implement an entitylistener that compares the original and the updated object in the @PreUpdate event. I tried to use the Jpa Repositor ...
I have a PreUpdate method which gets executed, but when flushing the entityManager the changes on the dependent entity are not persisted. Following i ...
I have EntityListener class that serves several entities (which extends a base entity). How can I determine which entity invoked the method of the En ...
I am trying to get Spring active profile in JPA Entity Listener using System.getproperty("spring.profiles.active"). But it is always returning Null pr ...
I am building an entity listener in an application based on symfony 2.7. It will apply a tag to a video whenever the video's owning group changes. M ...
E.g., will the below code run properly? Or do I have to define a separate Entity Listener for each and every entity class? ...
I'm using jpa , spring data and entity listeners to audit my entities precisely on postUpdate , postPersist , PostRemove This is a pseudo code of my ...
I have a system based on the following repository: https://github.com/damienbeaufils/spring-data-jpa-encryption-example To encrypt/decrypt a field on ...
Anyone is having a problem with injecting a Sessionscoped bean into EntityListeners class ? I am using JPA 2.1 , hibernate-jpa2.1, on JBoss EAP 7.0. ...
[EDITS] Based on goto answer, I edited the ProjectListener.php file. [SETTINGS] Symfony 3.4 Projet entity Other child entities Relate ...
I use @EntityListeners to make operations before I save in my Db and after I load. Inside my Listener class I make a call to an Ecryptor (which needs ...