From: yxyang <nu...@jb...> - 2005-07-30 12:52:08
|
I checked the source code and i found that it is strange to have many-to-one mapping is used: In ./forums/src/main/org/jboss/portlet/forums/impl/TopocImpl.java anonymous wrote : | /** | * @hibernate.many-to-one | * column="jbp_first_post_id" | * class="org.jboss.portlet.forums.impl.PostImpl" | */ | public Post getFirstPost() | { | return firstPost; | } | and In ./forums/src/main/org/jboss/portlet/forums/impl/PostImpl.java: anonymous wrote : | /** | * @hibernate.many-to-one | * column="jbp_topic_id" | * class="org.jboss.portlet.forums.impl.TopicImpl" | */ | public Topic getTopic() | { | return topic; | } | I feel that it should be one-to-one mapping and i think it could be the reason of deletion failure. Please comment and If one-to-one mapping should be used, i will modify the codes. THanks Yang View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3887435#3887435 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3887435 |