-->
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: Coolest Method Name Ever
PostPosted: Thu Jun 14, 2007 4:30 pm 
Newbie

Joined: Thu Nov 09, 2006 9:42 pm
Posts: 13
org.hibernate.hql.ast.tree.FromClause.findIntendedAliasedFromElementBasedOnCrazyJPARequirements

This came up in a stack trace and made me smile.

--
Tim


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 28, 2007 7:59 pm 
Newbie

Joined: Thu Nov 09, 2006 9:42 pm
Posts: 13
Turns out this is due to implicit joins caused by the '.' operator on MySQL. A workaround is to explicitly join with IN( ...) even in OneToOne cases. This rearranges the generated SQL to something MySQL likes better.

--
Tim


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.