-->
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.  [ 1 post ] 
Author Message
 Post subject: short column name alias
PostPosted: Wed Sep 15, 2010 1:24 am 
Newbie

Joined: Wed Sep 15, 2010 1:12 am
Posts: 1
whwnever i do a select on a table, i see a huge select statement with table name alias and column name alias for each column. this is causing bandwidth issues with database, it just carries unnecessary baggage. i can understand why they are doing, if we join 2 table there could be issue with column names being repetead

but is there a way we can specify our own short alias for columns ? i dont find it in the documentation.

example ;

select employee0_.employee_KEY as employee_key_132_0, employee0_.employee_NAME as employee_name_132_1, employee0_.join_date as join_date_132_2 from employee_records as employee

i want this as

select emp.employee_KEY as e_k, emp.employee_NAME as e_n , emp.join_date as j_d from employee_records as emp


Thanks


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.