-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Foreign Key Constraint ignored in many tables
PostPosted: Fri Feb 29, 2008 3:46 pm 
Newbie

Joined: Fri Feb 29, 2008 3:31 pm
Posts: 5
Location: USA
(skip to the bottom for the short version of the question)


I am currently picking up Hibernate with the help of a shoppingcart-like-app that uses hibernate as its ORM tool.

However, in this application which has been in production for at least a few years, I see that a lot of of tables don't have the foreign key constraint.

I remember from my EJB2.0 days, this was rare. Foreign key constraint was rarely found to be missing.

I am really thinking it was intentional for them to not add foreign key constraint in some of the tables.


My question is: Is it generally cumbersome to deal with associations when it comes to hibernate? (association or composition). I also saw some questionable composition being done in their app. Is it just me? or do Hibernate users generally come across such leniently implemented databases?

_________________
-- Renewing my interest in RDBMS-es. So please pardon any gaffes ;) --


Top
 Profile  
 
 Post subject: Re: Foreign Key Constraint ignored in many tables
PostPosted: Fri Feb 29, 2008 3:51 pm 
Expert
Expert

Joined: Wed Apr 11, 2007 11:39 am
Posts: 735
Location: Montreal, QC
I would say that could have been a personal choice. I have been using hibernate will well established databases and association handling has been perfect.

There are some things that you might expect from hibernate but they are missing. However, those are usually handled in one way or another. Still, it's way easier than doing jdbc.



Farzad-


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.