-->
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: Table name alias not added to column
PostPosted: Fri Mar 12, 2010 1:06 am 
Newbie

Joined: Fri Mar 12, 2010 12:46 am
Posts: 1
Hi I have recently started using Hibernate 3.5.0-CR-2.
I've found a problem that didn't exist when using 3.31.GA

Some of our database tables contain Oracle spatial data. One in particular has two columns for longitude and latitude,
GEOM.SDO_POINT.X and GEOM.SDO_POINT.Y

The problem is that the table alias is not added to the column name due to isIdentifier method in the Template class.
This method returns false because the column name contains full stops.
This means the renderWhereStringTemplate method doesn't prefix the column name with the table alias placeholder.

Fortunately for now I can use the following column definition, in order to get the table alias added.

@Column(name = "$PlaceHolder$.GEOM.SDO_POINT.X")

This is a separate issue to https://forum.hibernate.org/viewtopic.php?p=2426818 but the end result is the same.

Any suggestions or feedback is welcome.

Thanks,

Jez


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.