db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cameron Hickey" <...@panoramatos.com>
Subject RE: LONGTEXT what to do?
Date Tue, 26 Aug 2003 17:29:12 GMT
Yeah, I just constructed a new string from the byte[].  Is there a
reason why this column type maps to a byte[] instead of a string?

Thanks

Cameron

-----Original Message-----
From: Russell Simpkins [mailto:RussellSimpkins@funnygarbage.com] 
Sent: Tuesday, August 26, 2003 4:50 PM
To: Apache Torque Users List
Subject: RE: LONGTEXT what to do?

I'm not a struts developer, however did you try setting the column
type="longtext"

or, if you need a string you can pass a byte[] to a String()
constructor.

-----Original Message-----
From: Cameron Hickey [mailto:cam@panoramatos.com]
Sent: Tuesday, August 26, 2003 9:38 AM
To: 'Apache Torque Users List'
Subject: LONGTEXT what to do?


I realize that this may seem like a silly question, but I don't know the
answer:

I need to store long bits of text (HTML and XML) in a MYSQL database.
If I set the COLUMN TYPE="LONGVARCHAR" in my torque schema, that
generates a method which returns a byte[] data type.  Why is this so?  I
want to use this value in a form field on a Struts based website.  How
should I get the value to become a string?  Should I overwrite the
method which returns the value, or manage the conversion in my Struts
application?  

Thanks for any advice

Cameron




---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org


Mime
View raw message