title: Create simple POJO classes (bytecode) at runtime (dynamically)
body: <p>I've the following scenario..</p>
  
  <p>I am writing some tool that run user-entered query against the database and return the result..</p>
  
  <p>The simplest way is to return the result as: <code>List&lt;String[]&gt;</code> but I need to take this a step further.</p>
  
  <p>I need to create (at <strong>runtime</strong>) some POJO (or DTO) with some name and create fields and setters and getters for it and populate it with the data returned and then return it to the user among with the <code>.class</code> file generated...</p>
  
  <p><strong>So the idea here is How to Create simple class(bytecode) at runtime (dynamically)</strong>
  I do a basic search and found many lib <a href="http://jakarta.apache.org/bcel/manual.html">including Apache BCEL</a> But I think I need something more simpler...</p>
  
  <p>What do you think of that?</p>
  
  <p>Thanks.</p>