I use String for primary/composite key fields... there are size constraints
in many DB's about the total length of a PK
so i still need String mapped to varchars, plus it will be DB accepted to
use it as PrimKey (opposed to BLOBs)

The mix approach doesn't sound nice, but it works and is flexible enough to
handle most odd situations

My 2c,

JP

-----Original Message-----
From: Rafael Alvarez [mailto:[EMAIL PROTECTED]]
Sent: Sábado, 09 de Diciembre de 2000 10:11
To: Orion-Interest
Subject: Re[2]: large field bug ??


Hello Juan,

Thursday, January 11, 2001, 3:53:41 AM, you wrote:

JLC> had that problem....

JLC> it's a mapping problem... (oracle-schema)


JLC> Strings get Mapped to varchars(size)...

JLC> They get chopped at size chars...
JLC> the only solution is to declare the field as java.lang.Object
JLC> then use it as string

Or you can edit orion-ejb-jar.xml and change the type of the field in
the DB. The schema set it to varchar(255), but you can change it to
any oracle type you want. look for a line like
<cmp-field-mapping ..... persistence-type="varchar2(255)" ..>
change that and voila!

-- 
Best regards,
 Rafael                            mailto:[EMAIL PROTECTED]



Reply via email to