How can I retrieve the foreign key from a JPA ManyToOne mapping without hitting the target table?

前端 未结 5 894
萌比男神i
萌比男神i 2020-12-29 08:07

I have the following two annotated classes that I use to build a graph:

@Entity
@Table(name = \"Edge\")
public class Edge
{
    /* some code omitted for brev         


        
5条回答
  •  独厮守ぢ
    2020-12-29 08:53

    Have you tried

    @Column(name = "ixNodeTo", insertable = false, updatable = false)
    

提交回复
热议问题