Spring-Actuator without Spring Boot

If you like Spring-Actuator and want to use it in a traditional spring app i.e. without using spring boot, it is surely possible. I was looking around for a solution and nothing really worked out of the box. I’m guessing because people don’t post the whole solution and/or don’t point out the usual suspects and […]

How to simultaneously fetch multiple bags with hibernate

JPA specification allows up to two simultaneous eager fetches. But sometimes when we really need to this – we are stuck. One way to achieve this is to use hibernate extensions. We could do something like this: @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER, mappedBy = "keys") @Fetch(value = FetchMode.SUBSELECT)private List<T> keys; Second line instruct hibernate […]