Complete the code to set the fetch type to lazy loading for the association.
@OneToMany(fetch = FetchType.[1])
private Set<Order> orders;LAZY fetch type delays loading the related entities until they are accessed.
Complete the code to set the fetch type to eager loading for the association.
@ManyToOne(fetch = FetchType.[1])
private Customer customer;EAGER fetch type loads the related entity immediately with the main entity.
Fix the error in the fetch type declaration to use the correct enum value.
@OneToOne(fetch = FetchType.[1])
private Profile profile;FetchType enum values are uppercase: LAZY or EAGER.
Fill both blanks to define a OneToMany association with lazy fetch and cascade all operations.
@OneToMany(fetch = FetchType.[1], cascade = CascadeType.[2]) private List<Item> items;
LAZY fetch delays loading items; ALL cascade applies all operations.
Fill all three blanks to define a ManyToMany association with eager fetch, cascade persist, and mappedBy 'tags'.
@ManyToMany(fetch = FetchType.[1], cascade = CascadeType.[2], mappedBy = "[3]") private Set<Category> categories;
EAGER fetch loads categories immediately; PERSIST cascades save operations; mappedBy links to 'tags' field.