Is there any EJB metadata API?
I think a Metadata API on EJB3 is useful, for example:
1. Is the class Persistencable?
2. What is the persistence field and Data type?
3. What is the Id field? and how to get/set it?
4. Information about the relationship.
Although the information can be retrieved from the annotation, but if there is a standard API and the JEE container may provide the implementation, that would be an good idea.
Based on the metadata, application can do metadata-driven programming, and do some general works.