Estou com o seguinte erro, usando Hibernate e Struts 2:
Parece que o id está null, mas tenho uma aplicação configurada do mesmo jeito e não tenho esse erro.
null id in br.com.vendas.model.Usuario entry (don't flush the Session after an exception occurs)
Já tentei Auto e não funciona.
@GeneratedValue(strategy=GenerationType.AUTO)
@Id
@GeneratedValue
public Integer getId(){
return id;
}