mybatipse: Error "Property xxx not found in class yyy" on many properties, where the property exists in the class

For instance, these properties were al marked with error:

  <resultMap id="programCall" type="nl.mediacenter.xref.dal.ProgramCall">
    <result property="calledProgram"      column="CALLED_PROGRAM"      jdbcType="CHAR"/>
    <result property="calledProgramType"  column="CALLED_PROGRAMTYPE"  jdbcType="CHAR"/>
    <result property="calledProgramText"  column="CALLED_PROGRAMTEXT"  jdbcType="CHAR"/>
    <result property="callingProgram"     column="CALLING_PROGRAM"     jdbcType="CHAR"/>
    <result property="callingProgramType" column="CALLING_PROGRAMTYPE" jdbcType="CHAR"/>
    <result property="callingProgramText" column="CALLING_PROGRAMTEXT" jdbcType="CHAR"/>
  </resultMap>

And this is part of the class in question

package nl.mediacenter.xref.dal;

public class ProgramCall
{
public String calledProgram;
private String calledProgramType;
private String calledProgramText;
private String callingProgram;
private String callingProgramType;
private String callingProgramText;
public String getCalledProgram()
{
	return calledProgram;
}
public String getCalledProgramType()
{
	return calledProgramType;
}
public String getCalledProgramText()
{
	return calledProgramText;
}

As you can see, all the properties are there. The errors went away after I uninstalled MyBatipse.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 17 (8 by maintainers)

Most upvoted comments

Sure, there you go

package pu.heavymetal.bo;

public class JaarDocument
{
private final int jaar;
private final long issues;
public JaarDocument( Integer aJaar, Long aIssues )
{
	super();
	jaar = aJaar;
	issues = aIssues;
}
public int getJaar()
{
	return jaar;
}
public long getIssues()
{
	return issues;
}

}

Oh, now I see: it’s the final in the member definitions. If I remove that the errors go away!