A set of strings isn't an association... So I'm still confused why cascade() is called.
----- Original Message ----- From: "Mark Woon" <[EMAIL PROTECTED]> To: "Gavin King" <[EMAIL PROTECTED]> Sent: Wednesday, September 25, 2002 10:56 PM Subject: Re: [Hibernate] Problem with <component> element > Gavin King wrote: > > >>>cirrus.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:897) > >>> > >>> > > at cirrus.hibernate.impl.Cascades$2.cascade(Cascades.java:37) > > at cirrus.hibernate.impl.Cascades.cascade(Cascades.java:130) > > at cirrus.hibernate.impl.SessionImpl.cascade(SessionImpl.java:1770) > > at cirrus.hibernate.impl.SessionImpl.doSave(SessionImpl.java:576) > > at cirrus.hibernate.impl.SessionImpl.save(SessionImpl.java:458)<< > > > >Huh???? What on earth is being cascaded here? You have no associations in > >the mapping you showed me! > > > > Sorry. > > Yes, there was an association: > > <class name="Foo" table="Foos"> > <id name="id" column="id" type="string" unsaved-value="null"> > <generator class="assigned" /> > </id> > <property name="name" /> > <set role="altNames" table="AltNames"> > <key column="fooId" type="string" /> > <element column="name" type="string" /> > </set> > <component name="subComp" class="SubComp"> > <property name="version" column=version" /> > <property name="value" column="value" /> > </component> > </class> > > > -Mark ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel