It's kinda of a cheap answer but.. Do you need the one-to-one? Why not just have your subclassed user have a single table instead of both?
Also, if the original works fine, then try and add a one-to-one on the original.. Just to verify that it is the one-to-one causing it (not sure why it would though).. Eric > -----Original Message----- > From: Martin Wendel [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 29, 2004 12:59 PM > To: 'Turbine Users List' > Subject: RE: Subclassing DynamicUser.. > > > I forgot to say, if i remove the one-to-one from the User it works, so it > must be something i'm missing trying to extend it? > > /M > > -----Original Message----- > From: Martin Wendel [mailto:[EMAIL PROTECTED] > Sent: 29. juni 2004 12:55 > To: 'Turbine Users List' > Subject: RE: Subclassing DynamicUser.. > > Ok i've solved the other problem, but now i have this one which is a bit > more tricky. > > Running the antelope example again, still trying to subclass the > dynamicuser. > > When i try to run this line (abstractcreatetestuser): > > HibernateService hibernateService = (HibernateService) > lookup(HibernateService.ROLE); > > it gives me this error: > > junit.framework.AssertionFailedError: > org.apache.avalon.framework.component.ComponentException: Could not access > the Component (key [net.sf.hibernate.avalon.HibernateService]) > at junit.framework.Assert.fail(Assert.java:47) > at com.webcellcorp.affection.HibernateCreateUsersTest.setUp > > > > The mapping files look like this: > > > <class name="User" table="USER" > > <id name="id" type="long" column="USER_ID" unsaved-value="0"> > <generator class="native"/> > </id> > <one-to-one name="profile" class="Profile"/> > </class> > > > <class name="Profile" table="profile" lazy="true"> > <id name="id" column="profile_id" type="long"> > <generator class="foreign"> > <param name="property">user</param> > </generator> > </id> > <one-to-one name="user" class="User" constrained="true"/> > </class> > > > > What am i doing wrong? > > /Martin > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
