-->
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: mapping a table with 1 row and no id
PostPosted: Mon Jun 12, 2006 8:44 am 
Newbie

Joined: Tue May 16, 2006 5:48 pm
Posts: 6
How can I map a table which contains one row and no id column.

It is a legacy table and contains one status flag.

Thanks

Martin


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 12, 2006 9:02 am 
Beginner
Beginner

Joined: Thu Sep 01, 2005 7:43 am
Posts: 31
Location: León (Spain)
I guess that the legacy table has only one column... Then you can map that column as the primary key. Hibernate needs a primary key definition.

Hope this helps.
Bye.

_________________
Please rate...

Expert on Hibernate errors... I've had them all... :P


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.