How to generate a metamodel for POJOs

Posted by Stefan Haberl on Programmers See other posts from Programmers or by Stefan Haberl
Published on 2013-06-27T09:07:20Z Indexed on 2013/06/27 10:29 UTC
Read the original article Hit count: 291

Filed under:
|
|

I'm looking for a metamodel generation library for simple Java POJOs.

I'm thinking about something along the lines of JPA 2.0's metamodel, which can be used to generate type safe criterias for JPA entities (see this Question on SO for JPA specific implementations). Does something similar exist for general purpose JavaBeans, i.e., POJOS, that are not JPA entities?

Specifically, I want to implement Spring MVC's WebDataBinder.setAllowedFields() method in a type safe way in my Spring MVC @Controllers

© Programmers or respective owner

Related posts about java

Related posts about code-generation