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 […]
Tag: java
Configure compiler errors for specific src folders
It has been very annoying not being able to configure exclusions for compiler warnings in eclipse. In many projects, there are auto-generated files that do not comply to any coding standards and our ‘Problems’ perspective is bloated with warnings that are not interesting at all. Worst is that developers stop […]
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> […]