pcleung wrote:
when I put all class of AbstractUserProfile,
UserProfile, UserProfileService and UserProfile.hbm.xml
and HibernateUtil under same dir as com.erp.hibernate, no problem.
But when AbstractUserProfile, UserProfile, UserProfileService
and UserProfile.hbm.xml are put under com.erp.hibernate.user,
the following error occurs
Post hibernate.cfg.xml . Check the mapping element of UserProfile.hbm.xml - make sure it is confgured for com/erp/hibernate/user (it looks like you have this configured for com/erp/hibernate ) . Also post UserProfile.hbm.xml - make sure it is configured w/ the right package.