This content has been marked as final.
Show 2 replies
-
1. Re: How store a big file in postgresql without breaking the
rpa_rio Jun 11, 2005 6:26 PM (in response to rpa_rio)I found the solution, i created a SessionBean and put all PostgreSQL specific code there to store the file.
-
2. Re: How store a big file in postgresql without breaking the
tbech Jun 22, 2005 6:38 AM (in response to rpa_rio)SQL in SessionBean is spagethi code (or at least anti-pattern). Use Entity Bean for it.
Mapping for PostgreSQL is:
<java-type>java.lang.Object</java-type>
<jdbc-type>VARBINARY</jdbc-type>
<sql-type>BYTEA</sql-type>
Did you try such field in entity?
(I use String and TEXT for very long texts and works perfectly)