Skip to content

Tag: spring-boot

Spring boot – Maven – BUILD FAILURE

Hello I’m having trouble starting spring boot and I really don’t know whats going on. I have tried with the POM and the Aplication.properties but I just can’t find whats wrong. Here is the log: ——————————————…

Error while getting sql record using EntityManager

I am using EntityManager in spring boot app to get result from this query Its giving me correct output in PgAdmin but in java code List resultList = em.createNativeQuery(str).setParameter(1, sectionId ).getResultList(); Giving error ERROR: syntax error at or near “:” its breaking at data::jsonb .H…

How to set a list as an Enum constant argument?

How do I pass a List type value in the constant parameter? In this case, this parameter is only for the PARS() constant. Update: I ended up not mentioning it in the post but it’s a list of object and not a string. Answer Enums are objects instantiated from a class, like other objects and classes. So if …