Joined: Fri Apr 09, 2010 3:32 pm Posts: 1
|
Hello,
I am developing an application using Hibernate and Annotations. This is my code:
@Entity @Table(name="activity") Public class Activity { @ManyToMany @JoinColum(name="id_group") private Group group; }
@Entity @Table(name="group") Public class Group { @ID @GeneratedValue @Column(name="id_group") private Integer ID;
@OneToMany(mappedByd="group") private Set<Activity> activities; }
When I try tu run my application I have this exception:
Exception in thread "main" org.hibernate.AnnotationException: mappedBy reference an unknown target entity property: web.Activity.ID in web.Group.activities
Please I need help with this. I'd be grateful for any response
|
|