pgjdbc/pgjdbc — pull request #23 by robottino (2012-10-09 18:36:30+00:00)
Title: Update org/postgresql/jdbc2/AbstractJdbc2ResultSet.java

fixed a mapping problem when using jpa+hibernate native queries and column names containing upper case letters.

use case:
--- DB---

create table test_table (
id integer not null,
"testCOLUMN" varchar(10)
);

insert into test_table (id, "testCOLUMN") values (0,'hello');
insert into test_table (id, "testCOLUMN") values (1,'world');

--- JAVA ---

@Entity
@Table(name = "test_table")
public class TestEntity {

@Id
private int	id;

@Column(name = "\"testCOLUMN\"")
private String	testCOLUMN;

// getters & setters

}

...

final List resultList = em.createNativeQuery("select * from test_table where \"testCOLUMN\"= :value", TestEntity.class).setParameter("value", "hello").getResultList();