Blog Archives

Hibernate/JPA – Transparent Persistence II

I wanted to add another nice example about Transparent Persistence (explained in a previous post), to insist on the beauty of this. This time, adding JPA mappings in the classes that represent the domain model of my application. Additionally, I

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: , ,

Object Oriented Programming in Practice

The subject is a bit broad… so, let me explain what is this about. I’m trying to show a sample implementation of a system, modeling it using the Object Oriented Paradigm. The system is an online book store. The source

Posted in Object Oriented Programming Tagged with: , ,