Usually that means there's no getter or setter in your POJO to match a property defined in your Hibernate mappings. Even a spelling error or an incorrect capitalization could cause this though, so look carefully.
Please use code tags even for XML. They make it nicer to read and easier to refer to. I've added them for you here.
On line 5, Customer is a POJO, i.e., a plain old Java object ... so-called because it doesn't require to inherit from any Hibernate classes or paste in any Hibernate code to work. All it needs are getters and setters matching the definitions in this mapping file. It's very persnickety about the matching, and the error you're getting is saying something doesn't match. It could be a type, it could be a spelling error, it could even be the wrong casing. Some trial and error may be necessary. Remove the mappings one by one until you determine which one is causing the problem. If you still can't find it, post your Customer.java code here, and we'll look at it.
posted 7 years ago
I thought I had the getters and setters in this class