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]

Reply via email to