-->
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: Problem starting server with LONG Oracle type
PostPosted: Wed Nov 28, 2007 6:48 am 
Newbie

Joined: Wed Nov 28, 2007 6:37 am
Posts: 4
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.


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.