-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Exception when using Annotations
PostPosted: Fri Apr 09, 2010 3:45 pm 
Newbie

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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.