i'm working with spring data in my project herers the entities:
rr:
@Id
@GeneratedValue( strategy = GenerationType.IDENTITY )
private Long id;
private String model;
@ManyToOne
@JoinColumn( name = "owner" )
private ffperson;
private String constructor;
//getters and setters
zaa:
@Id
@GeneratedValue( strategy = GenerationType.IDENTITY )
private Long id;
@Column( name = "name" )
private String Name;
//getters and setters
gff @Id @GeneratedValue( strategy = GenerationType.IDENTITY ) private Long id;
@Column( name = "lastname", unique = true )
private String lastName;
@Column( name = "firstname", unique = true )
private String firstName;
@Column( name = "birth_date", unique = true )
private Date dateOfBirth;
gfff:
@Id
@GeneratedValue( strategy = GenerationType.IDENTITY )
private Long id;
@ManyToOne
@JoinColumn( name = "dog_id" )
private ffdog;
@ManyToOne
@JoinColumn( name = "person_id" )
private ffperson;
i want to write a query with spring data which can fetch all the persons with thier own dogs and cars..Can any body help please