This error message indicates that there is an issue with the XML configuration file for the Hibernate mapping of a Java class. Specifically, the error is saying that the "column" attribute is missing from the "property" element in line 13 of the User.hbm.xml file.

To resolve this issue, you need to add the "column" attribute to the "property" element in the User.hbm.xml file, specifying the name of the database column that corresponds to the property. For example:

This will map the "firstName" property of the User class to the "first_name" column in the database

Description	Resource	Path	Location	TypeAttribute column must be declared for element type property	Userhbmxml	NO16src	line 13	XML Problem

原文地址: https://www.cveoy.top/t/topic/g3WM 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录