1 Replies - 1637 Views - Last Post: 14 June 2018 - 12:14 AM

#1 ganeshcr   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 13-June 18

java programming

Posted 13 June 2018 - 03:30 AM

this is my controllerclass:

class public ResponseEntity<termresponse> deleteTerm (@RequestBody TermBean bean)
{
    HttpStatus httpStatus = HttpStatus.OK;
    System.out.println("is id is passed="+bean.getId());TermResponse st = new TermResponse();
    return new ResponseEntity<termresponse>(st,httpStatus);
}
this is my implementation class :

@Override
public Term deleteTerm(int Id)
{
    TermBean bean = new TermBean();
    bean.setId(Id);
    Term term = ((TermServiceImpl) termService).getTermById(bean.getId());

    ((TermServiceImpl) termService).deleteTerm(Id);

    entityManager.remove(term);

    System.out.println("term is deleted, Term Details="+term);

    return term;
}


I need to know if i have any changes in my code
so that i need to delete ,requested from the postman

This post has been edited by NormR: 13 June 2018 - 04:20 AM
Reason for edit:: Moved ending code tag


Is This A Good Question/Topic? 0
  • +

Replies To: java programming

#2 ndc85430   User is offline

  • I think you'll find it's "Dr"
  • member icon

Reputation: 976
  • View blog
  • Posts: 3,849
  • Joined: 13-June 14

Re: java programming

Posted 14 June 2018 - 12:14 AM

Do you have a question? It's not clear what you need help with. Your thread title is not very descriptive either and I can't make it better as I'm not even sure what you're asking.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1