-->
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.  [ 3 posts ] 
Author Message
 Post subject: Problem with id column
PostPosted: Mon Apr 16, 2007 3:39 am 
Newbie

Joined: Sat Dec 02, 2006 4:23 am
Posts: 17
Hi all,
Iam using legacy Database( oracle 10g).I want to fetch datas from a view which has no unique key column.Is it possible to do?I have created the view from a audit track table which has no unique key.Then what should i specify in the id tag of the mapping file.
Can anybody answer me?

Regards,
Karthik


Top
 Profile  
 
 Post subject: Hi
PostPosted: Mon Apr 16, 2007 4:23 am 
Beginner
Beginner

Joined: Thu Apr 12, 2007 12:04 pm
Posts: 25
Location: Chennai
Hi Kartik,

There is nothing to worry in this regard seince hibernate creats its own primery key for the column which u give for.

Its not so that u must have any unique key in ur table for that.

But besure that u r giving <generator class="assigned"/> instead of increment.

Thnks
With Regards

Saurav Jain

_________________
I Really want to share my knowledge and learn from you all people specaily about Hibernate.. Thanks Lot


Top
 Profile  
 
 Post subject: Re: Hi
PostPosted: Mon Apr 16, 2007 6:42 am 
Newbie

Joined: Sat Dec 02, 2006 4:23 am
Posts: 17
Hi Saurav,
Thanks for your response.But after using it also gave some duplicates in the output.Then now iam using compositeid and the error gets rectified.

Regards,
Karthik


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.