[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Attach Entity
mcsous
do-not-reply at jboss.com
Tue Sep 18 14:27:03 EDT 2007
Hello,
I'm wanting to save attach file in DataBase. I used this annotation:
@Basic(fetch=FetchType.LAZY)
| @Column(updatable=false)
| private byte[] content;
This works fine, except one thing, the fetch strategy doesn't work. The attach content always select like EAGER fetch strategy.
How can I lazy the content?
Thanks,
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4085680#4085680
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4085680
More information about the jboss-user
mailing list