-->
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: Hibernate Mapping
PostPosted: Thu Sep 13, 2007 4:36 pm 
Newbie

Joined: Tue Dec 20, 2005 5:47 pm
Posts: 13
Elloo!

Is there away to map a table in postgresql database without a primary key.

Here is a an example of a table:

Code:
CREATE TABLE test (
value1 integer,
value2 integer
);


When I try to map this, I get warning of property "id" has to be defined in the xml mapping.

Cheers!


Top
 Profile  
 
 Post subject: ID
PostPosted: Fri Sep 14, 2007 8:55 am 
Beginner
Beginner

Joined: Wed Oct 25, 2006 9:05 am
Posts: 40
Location: France, Lieusaint
Hi,

Is this an error of the XML parser ?

In which case, this is a matter of DTD.

Anyway, ID is needed in the 3.0 dtd


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.