Guest User

Untitled

a guest
Jun 24th, 2018
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. @OneToMany (mappedBy="patient", fetch = FetchType.EAGER,orphanRemoval = false)
  2. public Set<OutboundMessage> getOutboundMessages()
  3. {
  4. return outboundMessages;
  5. }
  6.  
  7. @ManyToOne (fetch=FetchType.EAGER)
  8. @JoinColumn(name = "id_patient")
  9. public Patient getPatient()
  10. {
  11. return patient;
  12. }
  13.  
  14. The DELETE statement conflicted with the REFERENCE constraint "FKqjpga9w6wp3qk26ox9pg252d9". The conflict occurred in database "MDHIS", table "dbo.tblOutboundMessage", column 'id_patient'.
Add Comment
Please, Sign In to add comment