Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version: 3.0
Mapping documents:
Code between sessionFactory.openSession() and session.close():
Full stack trace of any exception that occurs:
Name and version of the database you are using:
The generated SQL (show_sql=true):
Debug level Hibernate log excerpt:
Is it possible to have a many-to-one relationship between a mapped class an component?
Referencing the following figure:
http://www.dafunks.com/hibernate/many-t ... oblems.jpg
I have:
0. component relationship from the Preferences class to the WarningPreferences class
1. one-to-many relationship from the WarningPreferences class to the WarnedUsers class
2. many-to-one relationship from the WarnedUsers class to the WarningPreferences class
3. many-to-one relationship from the WarnedUsers class to the Users class
But at runtime, I get an error about WarningPreferences being an unmapped class. Any suggestions as what to do in this scenario?