-->
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: problem on composite key class retrieval
PostPosted: Thu Jul 29, 2004 4:29 pm 
Newbie

Joined: Tue Jun 22, 2004 12:16 pm
Posts: 8
Hi,

I am getting a weird error when trying to retrieve from a table.
The table has only two columns. They both consist the composite key.
Like this

create table abc(
col1 char(10) not null,
col2 char(10) not null,
primary key (col1, col2)
)

col1 is referenced by another table1, so is col2 by table2.


when I try to use session.find("select a from abc a") to retrieve the data, it complains that

in expected: a[select a from abc a]

I also tried to use join clause but no help.

The "hibernate in action" only talks about the the general case when the primary key is only one column.

Does anyone have similiar problem?

thanks
andre


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 29, 2004 4:48 pm 
Newbie

Joined: Tue Jun 22, 2004 12:16 pm
Posts: 8
Please ignore the above question.
I found my error.
Sorry about that.


andre


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.