"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."
--- Martin Fowler
Partheban Udayakumar wrote:What I am trying to do here is, if I delete a Employee record, the concerned Person record should also be deleted.
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."
--- Martin Fowler
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."
--- Martin Fowler
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."
--- Martin Fowler
Partheban Udayakumar wrote:It invokes the repository's delete method repo.delete(id). I have my repo class extend JPA repository. Here are the files
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."
--- Martin Fowler
Partheban Udayakumar wrote:You would have noticed that my repo class extends jpa repository. Jpa repository has a predefined delete function. I haven't overriden it. I'm using the same.
Partheban Udayakumar wrote:Nothing happens to employee object that is the problem.
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."
--- Martin Fowler
Partheban Udayakumar wrote:In your DossierServiceImpl,java I had to add code for deleting Lijn.
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."
--- Martin Fowler
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."
--- Martin Fowler
Consider Paul's rocket mass heater. |