What do you understand by annotation in EJB to do the database entity relationships/mappings with examples?

devquora
devquora

Posted On: Feb 22, 2018

 

Here are some annotations that are provided by the EJB.

  • OneToOne - The object that has one to one connection. For example, a person goes to buy a TV using a credit card.
  • OneToMany - The object that has one to many connections. For example, a cat has many kittens.
  • ManyToOne - The object that has many to one connection. For examples, A lot of passengers has a single train to visit destiny.
  • ManyToMany - The object that has many to many connections. For examples, A serial has many models and a model works in many serials.

    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..