Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to mapping Clob to String?

665760Dec 7 2009 — edited Dec 9 2009
Hey :)

I'm trying to mapping a clob column to String but im doing something wrong because it always return null.

My CLOB column only has characters and this is the way that i'm trying:

@Lob
@Basic(fetch=FetchType.LAZY)
@Column(name="BG_DESCRIPTION")
private String bgDescription;

I've tried with FetchType.EAGER but doesn't work. I only want to retrieve values, how can i configure it to works?

Thx in advance

David
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 6 2010
Added on Dec 7 2009
1 comment
2,832 views