Let's say, I have a JPA entity, no associations, several persistent simple type fields, and among them one with Lazy loading fetch type:
Code:
@Basic(fetch=FetchType.LAZY)
@Column(name = "SBL_CONTENT")
private String content;
When I change content and try to merge the entity, nothing happens, no update statement is executed. Also, when I change any other non-Lazy field, update statement is executed, but only for those fields, without 'content' field in statement.
But, when I try to remove Lazy loading, like this:
Code:
@Column(name = "SBL_CONTENT")
private String content;
update statement is executed, with all the fields.
How can I update Lazy simple type field??