'I am getting ORA-02275 during initialization of application

I have three entities, one with a foreign key and two that refer to it by that key. I set spring.jpa.generate-ddl property to update, and schema is created correctly, but I get an error: ORA-02275: such a referential constraint already exists in the table. When I use the h2 database I do not get this error. Do you have any ideas on how to get rid of this?

public class TableA {

    @Id
    @GeneratedValue(generator = "table_a_sequencer", strategy = GenerationType.SEQUENCE)
    @SequenceGenerator(name = "table_a_sequencer", sequenceName = "table_a_seq", allocationSize = 1)
    private BigInteger id;

    @Column(nullable = false)
    private Integer ident;

public class TableB {

    @JoinColumn(name = "tb_ta_ident", referencedColumnName = "ta_ident")
    @OneToOne(fetch = FetchType.LAZY)
    private TableA tableA;
public class TableC {

    @JoinColumn(name = "tc_ta_ident", referencedColumnName = "ta_ident")
    @OneToOne(fetch = FetchType.LAZY)
    private TableA tableA;

}


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source