[jboss-user] [JBoss Seam] - mappedBy in Hibernate Annotation

sucheta24 do-not-reply at jboss.com
Mon Oct 8 02:53:09 EDT 2007


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. 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092406#4092406

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092406



More information about the jboss-user mailing list