title: Java Convert to entity from a List<?>
body: <p>So, i got an method in one class that receives a List of any class (Entity) and i want to map it like:</p>
  
  <p>Class:</p>
  
  <pre><code>@Entity
  @Table
  public class Employee {
  
     @Id
     @GeneratedValue(strategy = GenerationType.AUTO)  
  
     private int eid;
     private String ename;
     private double salary;
     private String deg;
  
     public Employee(int eid, String ename, double salary, String deg) {
        super( );
        this.eid = eid;
        this.ename = ename;
        this.salary = salary;
        this.deg = deg;
     }
  }
  </code></pre>
  
  <p>List received:</p>
  
  <pre><code>0 -&gt; Class reference
  </code></pre>
  
  <p>Map what i want:</p>
  
  <pre><code>0 -&gt; List of attributes with their values
  </code></pre>
  
  <p>The thing here is that i don't know what Class is receiving the method.</p>