[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Re: Store pdf files in the database
lafr
do-not-reply at jboss.com
Thu Dec 28 13:33:40 EST 2006
We have an antity storing an excel file in database. The field is declared as following:
/**
* @ejb.interface-method
* @ejb.persistence
* column-name="losgr_attachment"
* sql-type="BYTE"
* jdbc-type="LONGVARBINARY"
* @return Returns the losgrAttachment.
*/
public abstract java.lang.Object getLosgrAttachment();
/**
* @ejb.interface-method
* @param losgrAttachment The losgrAttachment to set.
*/
public abstract void setLosgrAttachment( final java.lang.Object losgrAttachment );
The database field is of type byte (Informix DB) or blob (Oracle 9i).
The parameter given to the setter is of type byte[].
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3996698#3996698
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3996698
More information about the jboss-user
mailing list