Hibernate - PropertyNotFoundException: Could not find a getter for

后端 未结 10 1682
一个人的身影
一个人的身影 2020-12-10 13:53

I have a class that looks like the following:

public class MyClass {
    private String dPart1;

    public String getDPart1() {
        return dPart1;
    }         


        
10条回答
  •  囚心锁ツ
    2020-12-10 14:32

    The setter & getter should look like this

    getdPart1()
    setdPart1(....)
    

    That's how the setters & getters are generated if generated through an IDE like eclipse.

提交回复
热议问题