It seems like mapping a LOB-type from Hibernate is not as easy as you'd think. If you're like me, you'll toss something like the following annotation to a POJO and hoping that all is fine:
@Lob
@Column(name = "picture")
private byte[] picture;
However, lo and behold - things is not as expected. Hibernate throws all kinds of fancy exceptions - such as: