Advertisement
Guest User

Untitled

a guest
Apr 20th, 2014
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. Column "nextArticle" cannot be resolved on table "article"
  2.  
  3. @OneToOne(mappedBy = "prevArticle")
  4. @JoinColumn(name = "nextArticle_id")
  5. public Article getNextArticle() {
  6. return nextArticle;
  7. }
  8.  
  9. @OneToOne(mappedBy = "nextArticle")
  10. @JoinColumn(name = "prevArticle_id")
  11. public Article getPrevArticle() {
  12. return prevArticle;
  13. }
  14.  
  15. In attribute 'prevArticle', the "mapped by" attribute 'nextArticle' has an invalid mapping type for this relationship.
  16.  
  17. @OneToOne
  18. @JoinColumn(name = "next_id")
  19. private Article nextArticle;
  20.  
  21. @OneToOne(mappedBy = "nextArticle")
  22. private Article prevArticle;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement