Bom dia pessoal estou com um problem na annotation -->@org.hibernate.annotations.NaturalId
diz o seguinte cannot be resolved to a type, o detalhe que as outras annotations funciona direitinho.
sera que alguem pode me ajudar ? parece ser problemas de path mas nao estou conseguindo resolver.
obrigado.
package br.com.policiaMilitar.usuario;
import java.io.*;
import org.hibernate.*;
import javax.persistence.*;
import java.util.*;
@Entity
@Table(name="usuario")
public class Usuario {
@Id
@GeneratedValue
private Integer idUsuario;
private String nome;
@org.hibernate.annotations.NaturalId
private String email;
private String senha;
private String idioma;
private boolean estatus;
public Integer getIdUsuario() {
return idUsuario;
}
public void setIdUsuario(Integer idUsuario) {
this.idUsuario = idUsuario;
}
public String getNome() {
return nome;
}
public void setNome(String nome) {
this.nome = nome;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public String getSenha() {
return senha;
}
public void setSenha(String senha) {
this.senha = senha;
}
public String getIdioma() {
return idioma;
}
public void setIdioma(String idioma) {
this.idioma = idioma;
}
public boolean isEstatus() {
return estatus;
}
public void setEstatus(boolean estatus) {
this.estatus = estatus;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + ((email == null) ? 0 : email.hashCode());
result = prime * result + (estatus ? 1231 : 1237);
result = prime * result
+ ((idUsuario == null) ? 0 : idUsuario.hashCode());
result = prime * result + ((idioma == null) ? 0 : idioma.hashCode());
result = prime * result + ((nome == null) ? 0 : nome.hashCode());
result = prime * result + ((senha == null) ? 0 : senha.hashCode());
return result;
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
Usuario other = (Usuario) obj;
if (email == null) {
if (other.email != null)
return false;
} else if (!email.equals(other.email))
return false;
if (estatus != other.estatus)
return false;
if (idUsuario == null) {
if (other.idUsuario != null)
return false;
} else if (!idUsuario.equals(other.idUsuario))
return false;
if (idioma == null) {
if (other.idioma != null)
return false;
} else if (!idioma.equals(other.idioma))
return false;
if (nome == null) {
if (other.nome != null)
return false;
} else if (!nome.equals(other.nome))
return false;
if (senha == null) {
if (other.senha != null)
return false;
} else if (!senha.equals(other.senha))
return false;
return true;
}
}