-->
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: 3.1 ResultSetWrapper backport to 2.1.8
PostPosted: Fri Dec 16, 2005 5:17 pm 
Newbie

Joined: Fri Dec 16, 2005 4:45 pm
Posts: 1
It's actually very simple and can potentially have a large performance impact. For the 3.1 source I used RC1.

In case you want to do it yourself:

1) Copy the following files from the 3.1 source to your 2.1.8 source:
    Code:
    net/sf/hibernate/impl/ColumnNameCache.java
    net/sf/hibernate/impl/ResultSetWrapper.java
2) Edit net/sf/hibernate/loader/Loader.java

    Code:
    913c913
    <          columnNameCache = ColumnNameCache.construct( rs.getMetaData() );
    ---
    >          columnNameCache = new ColumnNameCache( rs.getMetaData().getColumnCount() );

3) Compile.


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.