-->
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.  [ 3 posts ] 
Author Message
 Post subject: Problem with Mapping Classes in a DYNAMIC WEB PROJECT
PostPosted: Thu Aug 26, 2010 11:21 am 
Newbie

Joined: Tue Aug 17, 2010 3:16 pm
Posts: 8
Know I'm having a problem mapping...

Server Exception. ID: e61a35_12aaef34c43_4
org.hibernate.AnnotationException: mappedBy reference an unknown target entity property: modelos.MtecForm.tecnicoRef in modelos.Mtecnico.tecnicoFormularioList

here is what I usually do
In the Many to one class

.......
private Mtecnico tecnicoRef;
.......
@ManyToOne
public Mtecnico getTenicoRef() {
return tecnicoRef;
}
.......

and in the one to many class


.......
@OneToMany(mappedBy = "tecnicoRef")
@LazyCollection(LazyCollectionOption.FALSE)
@Cascade({ CascadeType.ALL, CascadeType.DELETE_ORPHAN })
public List<MtecForm> getTecnicoFormularioList() {
return tecnicoFormularioList;
}
.....

Please help me if you see the problem!


Top
 Profile  
 
 Post subject: Re: Problem with Mapping Classes in a DYNAMIC WEB PROJECT
PostPosted: Thu Aug 26, 2010 1:31 pm 
Expert
Expert

Joined: Wed Mar 03, 2004 6:35 am
Posts: 1240
Location: Lund, Sweden
The getTenicoRef() method is missing a 'c'. It should be getTecnicoRef().


Top
 Profile  
 
 Post subject: Re: Problem with Mapping Classes in a DYNAMIC WEB PROJECT
PostPosted: Fri Aug 27, 2010 10:31 am 
Newbie

Joined: Tue Aug 17, 2010 3:16 pm
Posts: 8
OMG hehehehe thanks!!! I have to change my glasses :p thanks again!!!


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

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.