File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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).
subject: Hibernate - impact of missing foreign key in database
hibernate table mapping
issue that should be really simple
Hibernate problem - creating duplicate foreign key index
composite primary keys
Inheritance/one table for each class
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013