This is the scenario of my problem.
A moment ago, i was writing a mapping for my object Person. After i listed the mapping for the ID of the person, i proceeded to create a mapping for the remaining fields of the Person object. Upon writing this line,
<property name=”lastName” type = “string” column = “FIRST_NAME”/>
an error sign (red X mark) occurred at the left corner of myEclipse window telling me that
Multiple annotations found at this line:
– “Attribute ‘column’ must be declared for element type ‘property’ ”
– “Attribute ‘type’ must be declared for element type ‘property’ “
But that’s what i did, I placed those attributes INSIDE the property tag.
This makes me wonder now what made the code erroneous. And, how come the mapping syntax didn’t work if it worked in NetBeans. I was thinking if it is a mapping syntax error or just a few setting flaw of MyEclipse.
Thanks in advance for everyone who will help!