- Hibernate requires that entity tables have primary keys. End of story.
- 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.
More Related Contents:
- Mapping many-to-many association table with extra column(s)
- How does JPA orphanRemoval=true differ from the ON DELETE CASCADE DML clause
- What is the difference between DAO and Repository patterns?
- How to use @Where in Hibernate
- @OrderColumn annotation in Hibernate 3.5
- How to query data for Primefaces dataTable using lazy loading and pagination
- Hibernate Search: How to use wildcards correctly?
- Hibernate: comparing current & previous record
- Performing Date/Time Math In HQL?
- Struggling to understand EntityManager proper use
- java.lang.ClassNotFoundException: org.hibernate.HibernateException
- Hibernate throws org.hibernate.AnnotationException: No identifier specified for entity: com..domain.idea.MAE_MFEView
- Spring Boot & Spring Data: how are Hibernate Sessions managed?
- Hibernate – why use many-to-one to represent a one-to-one?
- Hibernate: How specify custom sequence generator class name using annotations?
- Spring Data JPA – Pass column name and value as parameters
- Deleted object would be re-saved by cascade (remove deleted object from associations)
- Invalidating JPA EntityManager session
- JPA CriteriaBuilder – How to use “IN” comparison operator
- How to generate a ddl creation script with a modern Spring Boot + Data JPA and Hibernate setup?
- When to Use EntityManager.clear()?
- How is Hibernate deciding order of update/insert/delete
- Hibernate unidirectional one to many association – why is a join table better?
- Hibernate inserts duplicates into a @OneToMany collection
- hibernate – get id after save object
- Hibernate hbm2ddl.auto, possible values, and what they do
- In Spring with jpa/hibernate, how do I keep a session open to avoid lazy initialization exceptions?
- Should Hibernate be able to handle overlapping foreign keys?
- Hibernate IN Clause with multiple columns
- New object with HQL