So I'm new to JPA and just trying to figure out the best practices for what I need. I have code the looks like the following Entity and when I use findAll() in the controller its automatically pulling the data I want from Equipment and Validation. Whats the proper way to just retrieve Equipment though if I dont Validation. The full database is much larger than this with many more joins so there's an ask to be able to just retrieve the data within a single table also.
@Entity
@Table()
public class Equipment{
@Id
@Column(name="eqpmnt_id")
Integer equipmentId;
@Column()
String equipmentName;
@OneToOne()
@JoinColumn(name="eqpmnt_id")
Validation validation;