Blog Archives

Hibernate/JPA – Inheritance and Polymorphic Asociations

This post is part of a series of post I will be written about Hibernate. In this one, I will be describing how Hibernate and JPA deals with inheritance and polymorphic associations. I’m going to implement a very simple bank

Posted in Persistence Tagged with: , , , ,

Use Inheritance Properly

How many times did you ask yourself, in order to avoid duplicated code, if you should use inheritance or composition? Did you ask yourself about the differences between subtype and subclass? Do you always follows the Liskov Substitution Principle? This

Posted in Design & Architecture, Object Oriented Programming Tagged with: , ,