Effective JPA with Enumeration

How to persist an enumeration effectively? Here is my experience.

I will use Wordpress for example. We all know that every post in Wordpress blog system has a status with possible values: draft, pending-review, published…

Fluent Interface

I’ve played with my own framework recently, I found a new term, called “Fluent Interface”. There is a great article of Martin Fowler about this term, you can read it if you have not heard about it yet.

The idea of “Fluent Interface” is instead of returning void in setter methods of an object, returning an object to promote object chaining.