• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hibernate - impact of missing foreign key in database

 
Mahesh Gadgil
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you have one to many mapping in your hibernate mapping file but do not have corresponding foreign key mapping on the tables in the database, then what is the impact to a Hibernate application?
Are constraints on the database optional?

 
Bert Bates
author
Sheriff
Posts: 8898
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mahesh,

Let's move this question over to a more appropriate forum.

Welcome to the ranch,

Bert
 
Bogdan Baraila
Ranch Hand
Posts: 43
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From hibernate point of view yes the constraints are optional (i mean that hibernate will work without the constraint).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic