title: what is the benefit in dynamically generating java bean classes from xml?
body: <p>I had written a lot of java bean classes using my IDE. Another person suggests a different approach. He suggests that I put an xml file with bean definitions in them. Then I either use jaxb or xslt to dynamically generate the classes during build time. Though its a novel and interesting approach, I do not see any major benefit in it.</p>
  
  <p>I see only one benefit in this suggested approach : The java bean classes need not be maintained in configuration control. Any bean changes is going to require only an update in the xml file.</p>
  
  <p>Are there any major benefits in dynamically generating java classes ? Is there any other reason why this approach is taken ?</p>