79345162

Date: 2025-01-10 09:20:31
Score: 1
Natty:
Report link

I think you also need to add the 'schema' name in the @JoinTable, as you have a custom schema for your Entity Table, otherwise check the 'public' schema for the 'join table'.

"spring.jpa.properties.hibernate.show_sql=true" - is useful property to check what queries Hibernate is issuing to the database.

    @ManyToMany(cascade = CascadeType.ALL)
     @JoinTable(name = "drug_symptom", schema = "meds",
    joinColumns = @JoinColumn(name = "drug_id",nullable = false),
    inverseJoinColumns = @JoinColumn(name = "symptom_id", nullable = false))
     private Set<SymptomEntity> symptoms;
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @JoinTable
  • Low reputation (1):
Posted by: user17348273