6.2.1 upgrade '@NotFound' is not a '@ManyToMany' association


I am upgrading from 6.1.7.Final.

I now have this error:

annotated ‘@NotFound’ is not a ‘@ManyToMany’ association

my join:

@ManyToOne(fetch = FetchType.EAGER)
@JoinColumn(name = "username", insertable = false, updatable = false)
@NotFound(action = NotFoundAction.IGNORE)
public MyPojo getDetail() {
	return detail;

I could find this change mentioned in the upgrade guide.

Is this correct? ie I have to remove all the @NotFound annotations?


OK sorry, I found the answer in the list:

This annotation never did anything for @OneToMany or @ManyToMany, and we wanted to tell users to get rid of it, since it might be confusing to readers of the model, giving a wrong impression about behavior.