1
votes

I have a column type defined in Oracle as XMLTYPE and I am trying to save xml content using JPA. I have used something like in my entity class.

@CLOB
@Column(name = "COLOUM_NAME")
private String coloumName;

But i am getting the following exception.

ORA-01461: can bind a LONG value only for insert into a LONG column

Any solution for above issue?

1
did you find a solution to this ? - Debadatta

1 Answers

-1
votes

You don't need @CLOB annotation here. Just use String type.