[jboss-user] [JBoss Seam] - Re: ERROR: invalid large-object descriptor: 0 with postgreql
hazlorealidad
do-not-reply at jboss.com
Thu Sep 21 11:58:56 EDT 2006
Great that did the trick, thanks a lot.
To sum up for anyone else with the same problem.
The EntityBean has
@Lob
public Blob getContent()
{
return content;
}
In the Stateful session bean
@DataModel
private List documentList;
@DataModelSelection
@In(required=false)
@Out(required=false)
private Document document;
@PersistenceContext
private EntityManager em;
//You do need to do the merge before accessing the BLOB
em.merge(document);
Blob blob=document.getContent();
is = blob.getBinaryStream();
....
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3973330#3973330
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973330
More information about the jboss-user
mailing list