Database constraints for applications using Hibernate
Issue
- Is it necessary to enforce integrity constraints (primary key, foreign key, unique) in the DB layer if the data is managed exclusively by Hibernate?
- There is some performance cost related to having these constraints and they can potentially cause locking.
Environment
- Red Hat JBoss Enterprise Application Plaftorm (all versions)
- Hibernate (all versions)
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.
