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 _______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user