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: Table without primary key
PostPosted: Thu Sep 02, 2010 5:01 pm 
Newbie

Joined: Tue Apr 06, 2010 1:09 pm
Posts: 9
Hello there
I have a table without primary key and I get an error in the mapping file. According to the documentation, the property <id> for keys is mandatory. Exists another way to map my file with any property o method?
Suggestions accepted and apprecieated.


Top
 Profile  
 
 Post subject: Re: Table without primary key
PostPosted: Mon Sep 06, 2010 3:57 am 
Newbie

Joined: Mon Sep 06, 2010 3:21 am
Posts: 5
Ok but why you give without primary key table. because it helps to fine quickly and I think this problem you faced because of it so I suggest you to give primary key to table.

_________________
package holidays


Top
 Profile  
 
 Post subject: Re: Table without primary key
PostPosted: Tue Sep 07, 2010 11:04 am 
Newbie

Joined: Tue Apr 06, 2010 1:09 pm
Posts: 9
First thanks for the answer roseveltein
The table had a PK. For some client requirements we had to modify the table and eliminate the PK definitely. But now face this problem with the map file.


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.