title: JPA table with 2 primary key fields
body: <p>I have a table which contains only 2 fields. The table has a composite PK formed by these two fields.</p>
  
  <p>When using Netbeans for creating entity beans from database, the entity bean is not created automatically like other tables that have more than 2 fields.</p>
  
  <p>So I guess I need to create the entity bean myself. What is the best practice for creating this entity bean? Does it have to contain <code>COMPOSITE KEY</code> object or not?</p>