Enterprise JavaBeans 3.0 Step by Step


EJB 3.0 Development Process

  • Create plain java beans
  • Apply @Entity annotation
  • Identify primary key with @Id and @GeneratedValue
  • Map @OneToOne relationships
  • Map @OneToMany relationships
  • Map @ManyToOne relationships
  • Map @ManyToMany relationships
  • Create persistence unit through the persistence.xml file

You must be logged in to post a comment.