It should be easy. Oracle has defined "generate always" for an id column. So there is no need to add this id to the insert statement. How do i define my entity that it is handling right.
@Entity
public class Example {
@Id
@GeneratedValue // if i remove this annotation than hibernate complains that i need to set it manually
@Column(name="ID", insertable=false, updatable=false)
private Long id;
}
in the error message i see that it still tries to add the id to the query.
My work-around for the column. Add the @id
to an other column and remove the id column from entity definition :-D