For the first time hibernate is used, the following exception appears in the configuration file:
Org.hibernate.boot.InvalidMappingException:Could Not parse mapping document:com/myhibernatedemo/entity/ Product.hbm.xml (RESOURCE)
*********************
caused By:org.hibernate.boot.MappingException:Unable to perform unmarshalling on line number 6 and column 57. Message:cvc-pattern-valid: For patterns of type ' classnametype ' ([a-za-z_$][a-za-z\d_$]*\.) *[a-za-z_$][a-za-z\d_$]* ', value ' com/myhibernatedemo/entity ' does not have face validity. : Origin (Com/myhibernatedemo/entity/product.hbm.xml)
The reason for the error is: The mapping file cannot be parsed. As shown in the following figure, the package's path format is not supported, changing the image Identification format to the following image
Do not know why uploaded pictures have been unable to display, the text description: The Product.hbm.xml package= "com/myhibernatedemo/entity" changed to Package= " Com.myhibernatedemo.entity "can.