-->
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.  [ 3 posts ] 
Author Message
 Post subject: Cannot use Hibernate 3.5.x with Informix
PostPosted: Wed Nov 10, 2010 10:35 am 
Newbie

Joined: Fri Feb 27, 2009 8:02 am
Posts: 10
Location: Woking, England
Help,

In order to fix a previous issue with Hibernate 3.5.x we had to put back-ticks or brackets around column names that were also reserved words.
e.g. @Column(name = "`desc`") or @Column(name = "[desc]")

If we didn't use the back-ticks or brackets then the alias no longer gets pre-fixed and an ambiguous column error ensues.
e.g. select x.end, y.end from ... would become select end, end from...

However, after adding the back-ticks the select now works, but inserts fail with a syntax error because of the quotes generated.
e.g. insert into mytable ("end", othercol) values ...

This appears to be a problem with Hibernate and unless resolved we can't use Hibernate 3.5.x with Informix and may have to abandon Hibernate - not desirable.

For more information see my previous post: "Errors with generated SQL after moving from 3.2.1 to 3.5.2"

Any ideas very much appreciated.

Regards, Martin.

_________________
Thanks in advance for any helpful replies :O)


Top
 Profile  
 
 Post subject: Re: Cannot use Hibernate 3.5.x with Informix
PostPosted: Wed Nov 10, 2010 11:24 am 
Senior
Senior

Joined: Fri Oct 08, 2010 8:44 am
Posts: 130
Just check the code of appropriate SQL dialect class in Hibernate.


Top
 Profile  
 
 Post subject: Re: Cannot use Hibernate 3.5.x with Informix
PostPosted: Wed Jun 05, 2013 9:52 pm 
Newbie

Joined: Wed Jun 05, 2013 9:50 pm
Posts: 1
Hi Martin,

I'm encountering the same problem as you, did you find a solution?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.