So, I have this entity

```
@Entity
@Table(name = "VISITOR_IMAGE")
public class VisitorImage implements Serializable {

    @Id
    @Column(name = "VISITOR_ID")
    private Long visitorId;

    @OneToOne(fetch = FetchType.LAZY, cascade = CascadeType.PERSIST)
    @PrimaryKeyJoinColumn(name = "VISITOR_ID", referencedColumnName = "ID")
    private Visitor visitor;

    @Column(name = "NAME")
    private String name;

    @Column(name = "DATA")
    private byte[] data;

    @Column(name = "CONTENT_TYPE")
    private String contentType;

    @Column(name = "SIZE")
    private Long size;

    //getters and setters

}

```

and here I have jpa repository:

```
@Repository
public interface VisitorImageRepository extends JpaRepository<VisitorImage, Long> {}

```

so when I call delete in service, there is no error or anything, but it's not deleted

```
@Override
    public void deleteByVisitorId(Long visitorId) {
        visitorImageRepository.delete(visitorId);
}

```

I can't figure out why it's not deleted... primary key for the table is "VISITOR\_ID"

I would add that save works fine.

Any help?