Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8307817
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T18:37:18+00:00 2026-06-08T18:37:18+00:00

I am currently migrating an older application from hbm mappings to annotations. I have

  • 0

I am currently migrating an older application from hbm mappings to annotations. I have read numerous places stating that it is possible to do this, including the hibernate docs. I am running into trouble when I try to reference an annotated class from an hbm mapped with a many-to-one relationship.

I am getting the following error complaining about the annotated class.

“nested exception is org.hibernate.MappingException: Association references unmapped class: …cepis.domain.Note”

Is it possible to achieve what I want here, is there something very basic that I am missing (note like I said I have read numerous times that it is possible so a simple “yes it is possible” will not be of much help)?

My session factory is defined as follows …

<bean id="sessionFactory"
    class="org.springframework.orm.hibernate4.LocalSessionFactoryBean"
    scope="singleton">
    <property name="dataSource" ref="itc5DataSource" />             
    <property name="mappingResources">
        <list>
              <value>edu/uky/cepis/User.hbm.xml</value>...  
        </list>     
    </property>
    <property name="annotatedClasses">
        <list>
            <value>edu.uky.cepis.domain.Note</value>
        </list>
    </property>
    <property name="hibernateProperties">
        <props>
            <prop key="hibernate.dialect">${itc5.dialect}</prop>
            ...
        </props>
    </property>
</bean>

Thank you so much for any help in advance!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T18:37:20+00:00Added an answer on June 8, 2026 at 6:37 pm

    have you tried setting _ hibernate.mapping.precedence_ to “class, hbm”?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently migrating my project from Hibernate HBM Mappings to Annotations. Everything was easy
We have a system that is migrating from an older VARCHAR using LIKE setup
I'm currently migrating a project that is using Spring MVC without annotations to Spring
I'm currently working on migrating an application from MS-Access to MS SQL Server. In
We are currently migrating from PHP4 to PHP5 and have discovered an issue. In
I am currently migrating our build process from Eclipse/Ant to Maven/M2Eclipse/Artifactory. I have a
We are currently migrating all our solutions from 2005 to 2010 (that's right, we're
I'm currently migrating an application from GMaps V2 to V3. As I use OSM
I'm currently migrating a Spring application from the JBoss J2EE container to Sun's Glassfish
I am currently migrating an application from a windows environment to a Redhat one.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.