@Transient in spring data doesn't work

后端 未结 1 814
心在旅途
心在旅途 2021-01-13 13:16

I have Settlement entity

@Entity
@Table(name = \"settlement\")
public class Settlement {

    @ManyToOne
    @JoinColumn(name = \"subscription_x         


        
相关标签:
1条回答
  • 2021-01-13 13:38

    I found the solution, the problem was in Annotation @org.springframework.data.annotation.Transient once I changed to @javax.persistence.Transient it worked fine.

    0 讨论(0)
提交回复
热议问题