We're using Hibernate in our gridsphere portlet based portal
www.gridsphere.org which uses Tomcat 4. Using 2.1.2 works fine, but when I upgraded to 2.1.3 it fails with the following:
32412 [http8080-Processor4] (BatcherImpl.java:241) DEBUG net.sf.hibernate.impl.BatcherImpl - preparing statement32418 [http8080-Processor4] (JDBCExceptionReporter.java:36) DEBUG net.sf.hibernate.util.JDBCExceptionReporter - SQL Exceptionjava.sql.SQLException: Column not found: USER in statement [select user as x0_0_ from sportletuserimpl sportletus0_ where (sportletus0_.userid='root' )] at org.hsqldb.Trace.getError(Unknown Source) at org.hsqldb.jdbcResultSet.<init>(Unknown Source) at org.hsqldb.jdbcConnection.executeStandalone(Unknown Source) at org.hsqldb.jdbcConnection.execute(Unknown Source) at org.hsql
We used schemaexport tool to create database (uses HsqlDB) and I see:
CREATE TABLE SPORTLETUSERIMPL(GSOID VARCHAR(32) NOT NULL PRIMARY KEY,USERID VA
RCHAR(255),FAMILYNAME VARCHAR(255),FULLNAME VARCHAR(255),GIVENNAME VARCHAR(255
),EMAILADDRESS VARCHAR(255),ORGANIZATION VARCHAR(255),LASTLOGINTIME BIGINT)
...
INSERT INTO SPORTLETUSERIMPL VALUES('8ac38b9efc4591c700fc4591f32c0006','root',
'User','Root User','Root','root@localhost.localdomain','GridSphere',0)
the mapping document looks like:
[fuzzmonkey:~/gridsphere] novotny% more webapps/gridsphere/WEB-INF/persistence/SportletUserImpl.hbm.xml
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 1.1//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd">
<hibernate-mapping>
<class
name="org.gridlab.gridsphere.portlet.impl.SportletUserImpl"
table="sportletuserimpl"
>
<id
name="oid"
column="gsoid"
type="java.lang.String"
length="32"
>
<generator class="uuid.hex"/>
</id>
<property name="UserID" type="string" column="userid"/>
<property name="FamilyName" type="string" column="familyname"/>
<property name="FullName" type="string" column="fullname"/>
<property name="GivenName" type="string" column="givenname"/>
<property name="EmailAddress" type="string" column="emailaddress"/>
<property name="Organization" type="string" column="organization"/>
<property name="LastLoginTime" column="lastlogintime"/>
<map name="attributes" table="sportletuserattributes">
<key column="gsoid"/>
<index column="attribute" type="string"/>
<element column="value" type="string"/>
</map>
</class>
</hibernate-mapping>
any help is greatly appreciated
Thanks, Jason