What are the callback annotations for entity bean?

devquora
devquora

Posted On: Feb 22, 2018

 

Here is the list of callback annotation for an entity bean:

  • @PrePersist -This method is summoned when the entity is built in the database.
  • @PostPersist - This method is summoned after the entity is built in the database.
  • @PreRemove-This method is summoned when the entity is deleted from the database.
  • @PostRemove-This method is summoned when the entity is deleted from the database.
  • @PreUpdate-This method is summoned when the entity is updated in the database.
  • @PostLoad-This method is summoned when the entity is to be updated in the database.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    EJB Interview Questions

    What is EJB?

    EJB stands for Enterprise java bean is a server-side software that is used to construct the module of enterprise software...

    EJB Interview Questions

    What are the various types of Entrepreneur java bean?

    Entity Bean: The object that is planned with the database is referred to an entity bean. It is used to execute..

    EJB Interview Questions

    What are the various types of Entity beam?

    CMP Entity bean: It is defined as Container Managed Persistence. It is the complex type of bean and very effective for the develope..