Usage Notes

If using JPA/Eclipselink, Blob properties can be mapped using the ClobJpaEmbeddable:

@AttributeOverrides({
    @AttributeOverride(name="name",    column=@Column(name="doc_name")),
    @AttributeOverride(name="mimeType",column=@Column(name="doc_mimeType")),
    @AttributeOverride(name="bytes",   column=@Column(name="doc_bytes"))
})
@Getter @Setter
private ClobJpaEmbeddable doc;

@Property()
@PropertyLayout()
public Clob getDoc() {
  return ClobJpaEmbeddable.toClob(doc);
}
public void setDoc(final Clob doc) {
  this.doc = ClobJpaEmbeddable.fromClob(doc);
}