Have you considered building this with the help of Errai JPA? Errai's client-side metamodel includes enough reflective functionality to build something like this that works 100% client side. You'd just need an @Entity annotation on the classes you want to use with it. Could even do automatic master/detail tables from JPA @OneToMany associations.