What options do we have to use Hibernate 4.x in legacy databases that doesn't use primary keys?

Solution Verified - Updated -

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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content