O'Reilly logo

JBoss RichFaces 3.3 by Demetrio Filocamo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The class diagram

The next class diagram shows the JPA entity classes generated by seam-gen:

The class diagram

As you can see, it doesn't differ a lot from the E-R diagram in fact, every class matches with the corresponding table in the database.

This is an example of the generated entity class (the ContactGroup entity). We've written some parts of the class, just to show some relevant JPA annotation:

@Entity @Table(name = "contact_group", catalog = "adv_contact_manager") public class ContactGroup implements java.io.Serializable { private Integer id; private Contact contact; private String name; private Set<ContactInGroup> contactInGroups = new HashSet<ContactInGroup>(0); ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required