title: Generate equals and hashCode in Record using tables primary key
body: <p>Is there a way to tell jOOQ to generate equals() and hashCode() using the primary key of its table?</p>
  
  <p>The use case is:</p>
  
  <p>I'm using Records in Vaadin Grids. I can refresh single items in the grid but Vaadin uses equals to find the corresponding item in the grid.</p>
  
  <p>Now in the UI the user can select a record and edit it. And after edit I want to refresh the record in the grid. As far as I cans see jOOQ is using all fields for equals() and because the row was changed equals() is no longer true.</p>