title: Display key and value Map in primefaces datatable
body: <p>In my Java EE 6 / JSF 2 project I have a <code>Map</code> property <code>advantages</code> in the <code>Employee</code> entity: </p>
  
  <pre><code>@ElementCollection
  private Map&lt;String, Float&gt; advantages;
  </code></pre>
  
  <p>The key represents the advantage name and the value represents the cost associated with the advantage name. This is mapped to a table with three columns <code>Employee_Id</code>, <code>Advantages</code> and <code>Advantages_Key</code>. I need to display all map entries in my <code>&lt;p:dataTable&gt;</code> which shows a <code>List&lt;Employee&gt;</code>. How can I achieve this?</p>