Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Column "nextArticle" cannot be resolved on table "article"
- @OneToOne(mappedBy = "prevArticle")
- @JoinColumn(name = "nextArticle_id")
- public Article getNextArticle() {
- return nextArticle;
- }
- @OneToOne(mappedBy = "nextArticle")
- @JoinColumn(name = "prevArticle_id")
- public Article getPrevArticle() {
- return prevArticle;
- }
- In attribute 'prevArticle', the "mapped by" attribute 'nextArticle' has an invalid mapping type for this relationship.
- @OneToOne
- @JoinColumn(name = "next_id")
- private Article nextArticle;
- @OneToOne(mappedBy = "nextArticle")
- private Article prevArticle;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement