Hibernate without Primary Key

  1. Hibernate requires that entity tables have primary keys. End of story.
  2. 50k records is simply not that many when you’re talking about a database.

My advice: add an autoincrement integer PK column to the table. You’ll be surprised at how fast it is.

Leave a Comment