-->
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: how Hibernate set ALIAS name in query
PostPosted: Mon Oct 29, 2012 2:26 pm 
Newbie

Joined: Mon Oct 29, 2012 2:10 pm
Posts: 1
hi

IN my organization the dba said me the problem that change in body SQL maden by Hibernate/jpa in EJB3 JBoss5.
These queries are maden in "object mode" : >>> Select c from MyTableClass. <<<

In this mode HIbernate set ALIAS of column in strange mode.
I have verified that is do not change at Jboss restart.
I suppose thwe alias is composed by <TableCount>_<ColumnCount>

The change of alias name of queries change the impact of analisys I suppose, even the body of queries do not change.

The questions :
-- What are the rules for Hibernate assign ALIAS in column of jpql query result ?
-- When these values changes ?

thank you soo much

Nicola


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.