• Post Reply Bookmark Topic Watch Topic
  • New Topic

Disabling FK and Not Null Constraints In Hibernate

Darryl A. J. Staflund
Ranch Hand
Posts: 314
Android Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

Is there a way of telling Hibernate to disable the generation of FK and Not Null constraints when auto-creating a table from annotation-based domain objects? I am hopping to have Hibernate disable them automatically in order to facilitate integration testing on our end, but can't seem to find a way of doing this.

All help is appreciated.

What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!