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: generated column names are differant per session factory
PostPosted: Mon Mar 15, 2010 12:18 pm 
Newbie

Joined: Mon Mar 15, 2010 12:02 pm
Posts: 1
notice the generated column names for each session factory are different, is there any way to make the column names the same ?

SELECT lstnumeric0_.mpr_id as mpr1___2_, lstnumeric0_.mpr_id as mpr1_2_, lstnumeric0_.attribute_id as attribute2_2_, lstnumeric0_.mpr_id as mpr1_3281_1_,

SELECT lstnumeric0_.mpr_id as mpr1___2_, lstnumeric0_.mpr_id as mpr1_2_, lstnumeric0_.attribute_id as attribute2_2_, lstnumeric0_.mpr_id as mpr1_249_1_,

Basically we have several servers each server will have a session factory that is loaded once, when it generates the SQL statements based on the same mapping files they get different column names causing SQL server to generate differ-ant cache plans for each ..

Any work around this .. please help/advice.

Thanks Anil


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.