If you are only storing text you probably want a CLOB rather than a BLOB [but 
either would work].  Most databases support large objects--so make sure you are 
using the correct dialect for the database you are using.  If you are using one 
of the milestone release of AppFuse 2.0 then you will want to use the @Lob 
Hibernate annotation for your property so the column is mapped correctly.

See the Hibernate documentation for more info:
http://www.hibernate.org/hib_docs/annotations/reference/en/html/entity.html#entity-mapping-property-column

Hope that helps, 
Nathan


----- Original Message -----
From: "Jaymin Shah" <[EMAIL PROTECTED]>
To: [email protected]
Sent: Sunday, May 13, 2007 8:56:33 PM (GMT-0800) America/Los_Angeles
Subject: [appfuse-user] Store large string/file to image/Blob etc as 
text/string.


We want to store large string/text values to our table. Typically it would
have text/string values only. We would like to have an attribute in
Hibernate class as String mapped to some DB type that can store large
text/string values. We expect to have DB type as Image/Blob. I am not sure
that hibernate support this kind of setup/configuration. Also, we would like
to have DB independent implementation so changing the Database would not
require any change in hibernate class.

I would appreciate your providing reference or help on implementing above
requirements.

Regards,
Jaymin
-- 
View this message in context: 
http://www.nabble.com/Store-large-string-file-to-image-Blob-etc-as-text-string.-tf3744271s2369.html#a10540451
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to