Say, I have the following entity class:
Person.java
@Entity
public class Person {
@Id
private String name;
private String[] c
I'm guessing at how you are currently storing the cars information and suggesting a possible solution:
@Entity
public class Car {
@Id
private String name;
@Column
private String person_name;
}
public interface CarRepository extends JpaRepository {
//Result will have all cars with the person_name identifying the Person @Entity
List findByName(String name);
}