Exception in thread \"main\" org.hibernate.InvalidMappingException: Could not parse mapping document from resource com/lara/Person.hbm.xml
at org.hibernate.cfg.C
it's simple
1.create constructor
public Person(){}
this is main thing in hibernate. it will map the object through this constructor(using Java Reflection Concept)
2.Understand the dtd. there are two types of dtd available mapping dtd and configuration dtd
Mapping-dtd is
configuration dtd is
hibernate.cfg.xml is configuration file and Person.hbm.xml is Mapping File so change the dtd in Person.hbm.xml
it will run.