-->
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: Identifier is too long in Hibernate 4
PostPosted: Fri Nov 15, 2013 12:40 pm 
Newbie

Joined: Fri Nov 15, 2013 12:21 pm
Posts: 2
I have an HQL query which in Hibernate 3 generates SELECT with aliases like this:

taskdetail0_.implementationTaskSettings_id AS impleme49_6_30_,
taskdetail0_.currentlyProvisionedPlanName AS current27_6_30_,

Hibernate 4.1 generates:

taskdetail0_.implementationTaskDetails_id AS implementationTaskDetails_i51_93_30_,
taskdetail0_.currentlyProvisionedPlanName AS currentlyProvisionedPlanNam22_93_30_,

And I get ORA-00972: identifier is too long. Is there a setting to control it or any other way to deal with?

Thanks,
Sergey


Top
 Profile  
 
 Post subject: Re: Identifier is too long in Hibernate 4
PostPosted: Sat Nov 16, 2013 2:42 pm 
Newbie

Joined: Fri Nov 15, 2013 12:21 pm
Posts: 2
That was a bug introduced in 4.3.Beta4 (not 4.1 as I stated above). 4.3.Beta4 is bundled with WildFly 8.0 Betta1, that how I got it. Oracle8iDialect.getMaxAliasLength() was set to 30, which caused the problem. It is fixed in 4.3.Beta5: changed to 20. It used to be 10 before 4.3.


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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.