Hi all!
I am new with Hibernate and Seam and I have a problem when I start the JBoss server with my project containing all the entities of my DB.
I have Oracle 9.2.0.1.0, JBoss Seam 2.0.1.SNAPSHOT, JBoss AS 4.2.2, Windows XP. In my DB I have a table like this:
create table APOYO_CONFIGURACION
(
NUMERO_ORDEN NUMBER(10) not null,
COD_CONFIGURACION NUMBER(10) not null,
CONFIGURACION LONG null,
primary key (NUMERO_ORDEN)
)
Seam-gen generate this property corresponding with this table entity:
Code:
@Column(name = "CONFIGURACION", length = 0)
@Length(max = 0)
public String getConfiguracion() {
return this.configuracion;
}
And when I start the server, an error arises:
Code:
11:34:34,512 INFO [TableMetadata] columns: [configuracion, cod_configuracion, numero_orden]
11:34:34,528 WARN [ServiceController] Problem starting service persistence.units:ear=Teldages.ear,unitName=Teldages
javax.persistence.PersistenceException: org.hibernate.HibernateException: Wrong column type: CONFIGURACION, expected: varchar2(0)
at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:720)
Does anyone know why can this be happening?
Thanks in advance.