A tiny entity framework in Java