[JBoss-user] [Persistence & CMP/JBoss] - Re: How store a big file in postgresql without breaking the

2005-06-22 Thread tbech
SQL in SessionBean is spagethi code (or at least anti-pattern). Use Entity Bean 
for it.
Mapping for PostgreSQL is:
 
java.lang.Object
VARBINARY
BYTEA
 

Did you try such field in entity?
(I use String and TEXT for very long texts and works perfectly)

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3882347#3882347

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3882347


---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Persistence & CMP/JBoss] - Re: How store a big file in postgresql without breaking the

2005-06-11 Thread rpa_rio
I found the solution, i created a SessionBean and put all PostgreSQL specific 
code there to store the file.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3881186#3881186

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3881186


---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user