-->
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 with columns named "id"?
PostPosted: Fri Dec 08, 2006 6:13 pm 
Newbie

Joined: Fri Dec 08, 2006 5:44 pm
Posts: 13
I have a table which looks as follows:

Code:
CREATE TABLE screen_group
(
  screen_group_id varchar(16) NOT NULL, -- Primary key.
  id varchar(30) NOT NULL, -- Name of screen group.
  name varchar(100), -- TODO: what is this for?
  CONSTRAINT screen_group_pkey PRIMARY KEY (screen_group_id),
  CONSTRAINT screen_group_id_key UNIQUE (id)
)


I am doing:

Code:
...Expression.like("id", ...


The query being generated is:

Code:
... where this_.screen_group_id like .....


Why is it using the field "screen_group_id"? I told it to use the "id" field.
Are fields named "id" treated special?

Thanks.

Blake McBride


Top
 Profile  
 
 Post subject:
PostPosted: Sat Dec 09, 2006 4:52 am 
Expert
Expert

Joined: Tue Dec 07, 2004 6:57 am
Posts: 285
Location: Nürnberg, Germany
Please post your mapping file!

_________________
Please don't forget to rate


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.