A basic Java implementation of Active Record design pattern