A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Object Relational Mapping
Hibernate - impact of missing foreign key in database
Joined: Jun 16, 2011
Jun 16, 2011 10:56:34
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?
Joined: Oct 14, 2002
Jun 16, 2011 18:33:21
Let's move this question over to a more appropriate forum.
Welcome to the ranch,
Spot false dilemmas now, ask me how!
(If you're not on the edge, you're taking up too much room.)
Joined: May 23, 2011
Jun 17, 2011 02:38:26
From hibernate point of view yes the constraints are optional (i mean that hibernate will work without the constraint).
I agree. Here's the link:
subject: Hibernate - impact of missing foreign key in database
Inheritance/one table for each class
issue that should be really simple
hibernate table mapping
Hibernate problem - creating duplicate foreign key index
composite primary keys
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015