-->
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.  [ 4 posts ] 
Author Message
 Post subject: possible bug in hibernate 3.0?
PostPosted: Sun Aug 22, 2004 12:05 pm 
Newbie

Joined: Thu Jan 29, 2004 9:06 pm
Posts: 6
Hi,

I couple of days I downloaded a cvs snapshot of hibernate 3.0
The reason I did this was because I wanted to use the improved
startup code (serialized mapping documents) in order
to reduce the startup time in my program.

I changed few lines in the source code in order to have hibernate
generate and load serialized mapping files. Please note that these
changes did not trigger the following bug, which also occurs with
the original sources:

When loading my ressources hibernate generates a faulty SQL
statement. The errors lies in a missing comma in the select
statement before a "case when". I am using MySQL 4.0.18.

This is generated:

"select ressourcec0_.id as id0_case when....."

Should probably be:

"select ressourcec0_.id as id0_, case when....."

As I cannot influence the generated sql, I don't think it's a user
error. I could work around the error by "hacking" the
SelectFragment.java source:

public String toFragmentString() {

.....

if (extraSelectList!=null) {
// if ( columns.size()>0 ) // !!I added the comment!!
buf.append(", ");
buf.append(extraSelectList);
}
return buf.toString();
}

As I am new to this forum, please advise me how to report this
possible bug.

Bernd


Top
 Profile  
 
 Post subject:
PostPosted: Sun Aug 22, 2004 12:09 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
submit a testcae to JIRA that reproduces the problem.

thanks for reporting it.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Aug 22, 2004 12:14 pm 
Newbie

Joined: Thu Jan 29, 2004 9:06 pm
Posts: 6
Ok,
I will isolate the bug and post some source to JIRA.

Bernd


Top
 Profile  
 
 Post subject:
PostPosted: Sun Aug 22, 2004 3:42 pm 
Newbie

Joined: Thu Jan 29, 2004 9:06 pm
Posts: 6
Did the JIRA entry now.
If the form is not appropriate please correct me.

Bernd


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