Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Switching off RI in hibernate

 
David Rocks
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Is there a config value to switch off RI and automatic constraint creation in hibernate.

The DB is in development and gets changed and hacked about with quite a bit and we tend to get quite a few errors with the constraints. We could do without them.

Thanks

 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can stop Hibernate creating any DDL, then constraint management is up to you.
 
Javid Jamae
Author
Ranch Hand
Posts: 198
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The hbm2ddl switch will usually only carry you until you have to start manually tweaking your DB. From that point on, you're on your own.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic