1. mappedBy reference an unknown target entity property stackoverflow.comI am having an issue in setting up a one to many relationship in my annotated object. I have the following:
|
2. mappedBy reference an unknown target entity property forum.hibernate.orgi have 3 classes : @Entity @Table(name="companies") public class Company implements Serializable { private static final long serialVersionUID = -3322113303362981686L; @Id @Column(name="CMP_COMPANY_ID",nullable=false) @GeneratedValue(strategy = GenerationType.AUTO) private Integer id; @Column(name="CMP_COMPANY_NAME",nullable=false) private String name; @OneToMany(mappedBy="company") private Set |
3. mappedBy reference an unknown target entity property forum.hibernate.orgItem.class Code: @Entity public class Item implements Serializable { private static final long serialVersionUID = 8635086262992868784L; @EmbeddedId public ItemPK itemPK; @Column(name = "ITM_ITEM_NAME") private String itemName; } ItemPK.class Code: @Embeddable public class ItemPK implements Serializable ... |