Hello,
I'm trying to map an Oracle column with type clob to an Hibernate text as:
Code:
<property name="profile" type="text">
<column name="profile" length="65535" />
</property>
but it gives me an exception:
Quote:
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [spring-hibernate.xml]: Invocation of init method failed; nested exception is org.hibernate.HibernateException: Wrong column type in STEPHANE.ADMIN for column profile. Found: clob, expected: long
I installed the Oracle jdbc driver with the following command and setup:
Code:
mvn install:install-file -Dfile=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/jdbc/lib/ojdbc14.jar -Dpackaging=jar -DgroupId=com.oracle -DartifactId=ojdbc14 -Dversion=10.2.0
Code:
<dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc14</artifactId>
<version>10.2.0</version>
</dependency>
The jdbc driver was successfully installed and I can connect to the database.
I don't feel like touching the Hibernate mapping.
I could touch the Oracle table column definition, although I suspect a clob is what I need here.
Any clue ?