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!
|
|