Hibernate Mapping Exception – Unknown Entity 1. The Problem This article is going to discuss the org.hibernate.MappingException: Unknown entity issue and solutions, both for Hibernate as well as for a Spring and Hibernate environment. Further reading: Bootstrapping Hibernate 5 with Spring A quick and practical guide to integrating Hibernate 5… Continue Reading hibernate-mappingexception-unknown-entity

Spring PostConstruct and PreDestroy Annotations Spring 1. Introduction Spring allows us to attach custom actions to bean creation and destruction. We can, for example, do it by implementing the InitializingBean and DisposableBean interfaces. In this short tutorial, we’ll look at a second possibility: the @PostConstruct and @PreDestroy annotations. 2. @PostConstruct Spring calls methods… Continue Reading spring-postconstruct-predestroy

Spring Performance Logging 1. Overview In this tutorial, we’ll look into a couple of basic options the Spring Framework offers for performance monitoring. 2. PerformanceMonitorInterceptor A simple solution to get basic monitoring functionality for the execution time of our methods, we can make use of the PerformanceMonitorInterceptor class out of… Continue Reading spring-performance-logging

Introduction to Chronicle Queue 1. Overview Chronicle Queue persists every single message using a memory-mapped file. This allows us to share messages between processes. It stores data directly to off-heap memory, therefore, making it free of GC overhead. It is designed for providing low-latency message framework for high-performance applications. In… Continue Reading java-chronicle-queue