-->
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: "Select just_one_field From Xxxx" using QBE
PostPosted: Tue Feb 21, 2006 9:03 am 
Senior
Senior

Joined: Fri Jan 13, 2006 2:50 pm
Posts: 123
Location: Blumenau / SC / Brasil
Hi!

Is it possible to generate the following SQL with QBE?

Code:
Select one_field_or_two_or_three From Xxxx Where ...


?

Nowadays I just can generate "Select * From ...".

Thanks.


Top
 Profile  
 
 Post subject: Yes
PostPosted: Tue Feb 21, 2006 11:50 pm 
Regular
Regular

Joined: Tue Jan 03, 2006 7:21 am
Posts: 85
I think yes you can write something like

select p.Name from User p where p.Id=10

but note that it will just return you an arraylist of the values you selected instead of instances of the User class


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.