-->
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.  [ 1 post ] 
Author Message
 Post subject: Stored Procedures and Primary Keys
PostPosted: Thu May 04, 2006 6:02 pm 
Newbie

Joined: Tue Sep 09, 2003 6:19 pm
Posts: 9
Hi,

I have a situation where I need to call stored procedures to access some legacy data. In this situation I don't update just read. Hibernate requires me to define a primary key. With the data I have there really isn't a primary key. I tried to just define the entire record as the PK. I'm having a problem in that some of the columns may be null. Any one have any experience with this? I'm also wondering why must I define a PK? A PK makes since for updates but isn't necessary for queries.

TIA


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

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.