mappedBy « Annotation « JPA Q&A





1. mappedBy in Hibernate Annotation    forum.hibernate.org

Getting org.hibernate.AnnotationException: Unknown mappedBy in: LocalizedString.values, referenced property unknown: LocalizedStringMap.localizedString. LocalizedString - @OneToOne(mappedBy = "localizedString") @Cascade({ CascadeType.ALL, CascadeType.DELETE_ORPHAN}) private LocalizedStringMap values; LocalizedStringMap - @OneToOne @JoinColumn(name="LocalizedString_id", nullable = false) private LocalizedString localizedString; & has corresponding getters & setters (public). Please point out why I am getting the above mentioned error. Thanks in advance.