This is my District Controller, when I try to fetch data after saving I get the error, even when I try get object form getDistrict(Long id) the same strikes ple
In the Statemaster class make districtmasters a List instead of Set and change the getter method accordingly: public List getDistrictmasters().
Unfortunately I can not explain why, but this worked for me.