+3  A: 

The exception you've posted is caused by you explicitly specifying an entity name on <class> declaration and not specifying it on <many-to-one>. Entity name is a special attribute used for distinguishing between different mappings based on the same class. You do NOT need it for you mapping.

That said, there are multiple additional issues with your mapping:

  1. <one-to-one> mapping for parent is wrong. It can't be one-to-one by definition - while this post will only have one parent, another post may have that same parent (especially for comments) which makes parent's end of association one-to-many. You need to map it as <many-to-one> instead.
  2. List of comments is not really a list unless you have a special column to maintain its index (which you don't judging by empty - and invalid - <index/> declaration). Map it as <bag> instead.
  3. Comment list really should be mapped with inverse=true.
  4. Not a problem per se but it makes your mapping harder to read - there's no need for nested <column> element; you can have it as attribute instead or skip it altogether if column name matches property name. Similarly, no point in having update=false everywhere - if you don't want your posts updated, don't save them :-)
ChssPly76
Wow, thank you so much! It is evident I still have quite a bit to learn about this framework, as after I followed your suggestions, I had to sequentially handle at least a dozen new exceptions from messing up other aspects of my Hibernate configuration. This time my mistakes were more straightforward, and everything seems to be working :)It's my first-ever Hibernate-powered application, and it's breathing after just three days of learning! Thank you very much for your help!
Magsol
You're welcome and best of luck with Hibernate. It comes a bit tough at first but becomes second nature after a while. And he fact that you've managed to get it working after only 3 days suggests you won't have too many problems going forward :-)
ChssPly76
A: 

You have a foreign key to a boolean property or something. Did you confuse a simple property with a manytoone? post your mapping

ben ahmed