title: How to access enum in playframwork template
body: <p>I have a model class with enum field</p>
  
  <pre><code>@Entity
  public class Product implements Serializable{
  
      @Id
      @GeneratedValue
      public long id;
  
      @Enumerated(EnumType.STRING)
      public ProductType type;
  }
  </code></pre>
  
  <p>I am pushing it to the template from an action</p>
  
  <pre><code>public Result index() {
          List&lt;Product&gt; products = getProducts();
          return ok(index.render(products));
      }
  </code></pre>
  
  <p>Now I am unable to access the enum field of Product in template. I tried this way but it is not compiling.</p>
  
  <pre><code>@for(product &lt;- products){
                      &lt;h1&gt;@product.type&lt;/h1&gt;
  }
  </code></pre>