Skip to content

Tag: spring-boot

How to reuse validator class in spring boot app?

I am currently writing custom validator for Spring Boot app and its idea is mainly to do some validations depending on other validations. For example, I want one field to be @NotNull if some other field is null, but the idea is to make it more generic, so that this conditional validations can be changed. For …

Translate SQL into Hibernate HQL

I’m using Spring boot along with Hibernate. I’ve only recently started using Java so I’m not quite good at it. I have a OneToMany unidirectional relationship with a join table. RssUrl Table User Table Join table I’m trying to translate this SQL into HQL It’s basically checking if…