79225883

Date: 2024-11-26 08:35:23
Score: 0.5
Natty:
Report link

I've resolved the problem by implements Serializable:

class A{
@ID
private Long id;

@ManyToOne
@JoinColumn(name="bid",referencedColumnName="id")
private B b;
}

class B implements Serializable{
@ID
private Long id;

@ManyToOne
@JoinColumn(name="cid", referencedColumnName="id")
private C c;
}

class C implements Serializable {
@ID
private Long id;
}

interface ARepo{
@Query("select a from A a where 1=1")
List<A> findAllA()
}

thank u guys!

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: zadaji