I’ve been trying to create a requester for a while now and I couldn’t find the cause of my error, so I simplified it to a simple delete by id.
But even then I get the error.
I’m using org.springframework.data.repository.Repository
@Transactional
@Modifying
@Query(value = "DELETE FROM PreVO" +
" WHERE PreVO.id = :idPre")
void deleteDecompteContrePartie(@Param("idPre") Long idPre);
Entity :
@Entity
@Table(name = "PRE")
public class PreVO {
/**
* The id.
*/
private Long id;
@Id
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "ID_PRE")
@SequenceGenerator(name = "ID_PRE", sequenceName = "ID_PRE", allocationSize = 1)
@Column(name = "ID_PRE", unique = true, nullable = false, precision = 10, scale = 0)
public Long getId() {
return this.id;
}
public void setId(Long id) {
this.id = id;
}
}