As MyBatis is a basic ORM, when we need to persista list of objects, we have to implement it manually, but without any copy/paste between classes. For this purpose, I designed a generic merger which is responsible of that task. It has to go through a list of objects and determine: what is new and… Continue reading Persist list with MyBatis
Tag: Generic
Check Generic type
Using JMS which is not implemented with Generics, I decided to add some “genericity”. The problem is that, because of type erasure, I can’t use the simple instanceof operator, the solution I used is to pass the class of the Generic when I use it: import java.io.Serializable; public class Handler { public Handler() { super();… Continue reading Check Generic type