I am getting an erroneous "More than one attribute configured for method" inspection warning.
Code:
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;
@MappedSuperclass
public abstract class AbstractEntity {
private Long id;
@Id
@GeneratedValue( strategy = GenerationType.AUTO )
public final Long getId() {
return this.id;
}
public final void setId( Long id ) {
this.id = id;
}
}
Anything that can be done to help diagnose?