anthony wrote:
is wobject
instance of
it.rvspm.siscotel.portal.dao.News ?
or is it a "child" or linked object?
Yes, I checked: dao.News is a linked object of wobject.
I put the
session.contains(wobject.getNews()),
 but it answer "false" in the same manner it does for the wobject before.
I put below a snip of my mapping, in order to have your feedback if there are "links problems"
Thanks in advance
Stefano
<class name="it.rvspm.siscotel.portal.dao.WebObject" table="WEBOBJECT">
        .....  .....
        <joined-subclass name="it.rvspm.siscotel.portal.dao.Page" table="PAGE">
            <key column="id" foreign-key="pageId"/>
            .....
            <set name="pubblications" inverse="true" cascade="all" order-by="horizzontalposition asc">
                <key column="page"/>
                <one-to-many class="it.rvspm.siscotel.portal.dao.Pubblication"/>
            </set>
            <set name="subpages" >
                <key column="superpage"/>
                <one-to-many class="it.rvspm.siscotel.portal.dao.Page"/>
            </set>
        </joined-subclass>
        <joined-subclass name="it.rvspm.siscotel.portal.dao.Content" table="CONTENT">
            <key column="id" foreign-key="contentId"/>
           .....
            <set name="pubblications" inverse="true" cascade="all">
                <key column="content"/>
                <one-to-many class="it.rvspm.siscotel.portal.dao.Pubblication"/>
            </set>
            <joined-subclass name="it.rvspm.siscotel.portal.dao.Article" table="ARTICLE">
                <key column="id" foreign-key="articleId"/>
                <property name="body" type="text"/>
            </joined-subclass>
            <joined-subclass name="it.rvspm.siscotel.portal.dao.News" table="NEWS">
                <key column="id" foreign-key="newsId"/>
                <property name="body" type="text"/>
            </joined-subclass>
        </joined-subclass>
   
        <joined-subclass name="it.rvspm.siscotel.portal.dao.Pubblication" table="PUBBLICATION">
            <key column="id" foreign-key="pubblicationId"/>
            .......  .....
            <many-to-one name="page" class="it.rvspm.siscotel.portal.dao.Page" />
            <many-to-one name="content" class="it.rvspm.siscotel.portal.dao.Content"/>
        </joined-subclass>