-->
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: duplicate alias in generated SQL raises JDBC exception
PostPosted: Fri Sep 17, 2004 2:29 am 
Newbie

Joined: Mon May 24, 2004 3:51 am
Posts: 9
Hi everybody,

I would like to have someone


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 18, 2004 5:48 pm 
Proxool Developer
Proxool Developer

Joined: Tue Aug 26, 2003 10:42 am
Posts: 373
Location: Belgium
From the stacktrace I would rather say there is a conversion problem (as the exception says).

It seems Hibernate tries to retrieve a Long from the resultset but got something else:

[code]java.sql.SQLException: Echec de conversion dans la repr


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 20, 2004 2:23 am 
Newbie

Joined: Mon May 24, 2004 3:51 am
Posts: 9
In the first post I've mentioned that the fields causing the problem are in the generated SQL sequence. Two columns (adresse1_.adresse1 and adressefou0_.adresse) that have the same alias but different types (String and long).
All I'm interested in is to find out why hiberete generated that SQL sequence using the same alias "adresse10_" for two columns.


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.