-->
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: Postgres + longvarchar
PostPosted: Thu Mar 29, 2007 3:09 am 
Beginner
Beginner

Joined: Mon Sep 12, 2005 3:27 am
Posts: 48
Hello,

We are using jboss and postgres as db-backend. In one entity bean i have explicitly set a property to be mapped as "longvarchar" in the database
Code:
@Column(columndifinition="longvarchar")
public String getName(){
return name;
}


On Jboss startup i get following error:

Code:
13:28:42,370 ERROR [SchemaUpdate] Unsuccessful: create table TAudit_Changed_Field (id int8 not null, field varchar(255), afterValue LONGVARCHAR, beforeValue LONGVARCHAR, timeMillis int8 not null, auditRecord_identifier varchar(255), auditRecord_action int4, auditRecord_entity varchar(255), auditRecord_timeMillis int8, auditRecord_changedBy varchar(255), primary key (id))
13:28:42,370 ERROR [SchemaUpdate] ERROR: type "longvarchar" does not exist


Of course i could simply change the column-type to "text" for postgres, but i have to be also compatible to hsqldb - and hsqldb only knows "longvarchar". What must i do, that jboss/postgres accepts/knows type "longvarchar" ?


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.