What options do we have to use Hibernate 4.x in legacy databases that doesn't use primary keys?
Issue
We have an environment that uses a legacy database that doesn't have primary keys. We can't change the database structure to add a new column to be the primary key.
Is there a workaround to use Hibernate in legacy databases?
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 6.x
- Hibernate
- 4.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
