Java PropertyReferenceException:找不到类型的属性ID

Java PropertyReferenceException:找不到类型的属性ID,java,spring,hibernate,jpa,Java,Spring,Hibernate,Jpa,在使用JPA/Hibernate4的Spring应用程序的堆栈跟踪中,我得到了以下消息 原因:org.springframework.data.mapping.PropertyReferenceException:找不到com.Heavweightsoftware.daybook.model.entity.calendar.Event类型的属性ID 错误出现在类的此行上: @ManyToOne(fetch=FetchType.LAZY) @JoinColumn(name="UUID") publ

在使用JPA/Hibernate4的Spring应用程序的堆栈跟踪中,我得到了以下消息

原因:org.springframework.data.mapping.PropertyReferenceException:找不到com.Heavweightsoftware.daybook.model.entity.calendar.Event类型的属性ID

错误出现在类的此行上:

@ManyToOne(fetch=FetchType.LAZY)
@JoinColumn(name="UUID")
public Event event;
下面是事件类:

@Entity
public class Event {

    @Id
    public String   uuid;
    ....
}

这是我目前唯一的多对一。你知道我做错了什么吗?

看来很多人际关系都是相互的。通过事件列表建立OneToMany关系似乎解决了这个问题