Search code examples
javaspring-bootdebuggingjpaprojection

How can I debug JPA projections content in Java?


I'm using JPA projections in my project. I have my Projection class which I can do getters without problem.

public interface ProjectionOP {

        String getName();
        
        LocalDate getDate();
//more attributes...
    }

If I print projectionOp.getName(); it returns the value stored successfully.

Anyway, using debug mode, I can not view this value. If I use debug mode, it shows the following image, which I don't understand.

enter image description here

It is possible to view the value of attributes 'name' and 'date' of my projectionOP in debug mode? I use STS IDE


Solution

  • You can view value in h -> advised -> targetSource -> target

    Detailed screenshot