OA. free
Free
Ola Core Computer Science Core Computer Science Medium

Assume that you want to persist an image as a byte array in an entity class using...

Ola technical mcq question, verified with a worked answer. Free to practise - no sign-up.

Assume that you want to persist an image as a byte array in an entity class using JPA/Hibernate:

@Entity
public class Image {
    private String id;
    private String fileName;
    private String fileType;
    private byte[] imgData;
}

Which JPA annotation must be specified on imgData to store large binary objects (BLOBs)?

Choose one option.
Show answer & explanation
Answer: A. @Large

Accurate technical and quantitative evaluation based on foundational principles.

Step-by-step Derivation:
Step 1: Formulate problem conditions.
Step 2: Apply logical deduction.
Step 3: Conclude correct option.