title: Object with dynamic fields / Hashmap with different values in Java
body: <p>We are doing some knowledge discovery in Databases in Java.</p>
  
  <p>We have different databases we know nothing about. </p>
  
  <p>An example scenario: We want to check if an entity has the property name and rename it. In python / js / dynamic languages that would be trivial:</p>
  
  <pre><code>if Object.hasKey(name) =&gt; Object.name = "Jordan"
  </code></pre>
  
  <p>Is there a way to store and manipulate generic objects at all in java? 
  Obviously classes are out of the way, since we don't know the object structure. Hashmaps also don't cut it, because the object can have all SQL types as property-types, and Hashmaps are limited to homogeneous fields. </p>