I have a one to many relationship between two tables. The many table contains a clob column. The clob column looks like this in hibernate:
@CollectionOfElements(fetch = EAGER) @JoinTable(name = NOTE_JOIN_TABLE, joinColumns = @JoinColumn(name = "note")) @Column(name = "substitution") @IndexColumn(name = "listIndex", base = 0) @Lob private List<String> substitutions;
So basically I may have a Note with some subsitutions, say
"fizzbuzz". So in my main table I could have a Note with id 4 and in my
NOTE_JOIN_TABLE I would have two rows,
"fizzbuzz" that both have a relationship to the Note.
However, when one of these is inserted into the DB the larger substitution values are cropped to be as long as the shortest. So in this case I would have
"fiz" in the DB instead of
Do you have any idea why this is happening? I have checked and confirmed they aren't being cropped anywhere in our code, it's defintely hibernate.