-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: These classes referenced by ‘extends’ were not found
PostPosted: Tue Jun 16, 2009 6:02 am 
Newbie

Joined: Thu Oct 23, 2008 10:00 am
Posts: 3
I have a simple example; a concrete class that inherits an abstract generic class that implements an interface.

ie. StringProperty -> AbstractProperty<T> -> IProperty

I get the following error...

Code:
    NHibernate.MappingException: These classes referenced by 'extends' were not found:
    NhibernateTest.AbstractGenericProperty`1[[System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], PromoNhibernateTest
       at NHibernate.Cfg.MappingsQueue.CheckNoUnavailableEntries()
       at NHibernate.Cfg.Configuration.SecondPassCompile()
       at NHibernate.Cfg.Configuration.BuildSessionFactory()

I use NHibernate attributes which produce the following mapping...

Code:
    <hibernate-mapping xmlns="urn:nhibernate-mapping-2.2">
      <class name="NhibernateTest.AbstractGenericProperty`1, PromoNhibernateTest" lazy="false" table="Properties">
        <id>
          <generator class="identity" />
        </id>
        <discriminator column="Name" type="String" />
      </class>
      <subclass name="NhibernateTest.StringProperty, PromoNhibernateTest" lazy="false" extends="NhibernateTest.AbstractGenericProperty`1[[System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], PromoNhibernateTest" discriminator-value="string" />
    </hibernate-mapping>


Please advise what is wrong with the mapping.

Thanks,

Ted.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.