Good day. There is a hibernate Entity:
@Entity @Table(name = "photos") public class Photo { @Id private long id; private String linkLocation; private byte[] data; @OneToOne(mappedBy = "photo") private Customer customer;
It is necessary that the byte field is not included in the database.