Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 16. The Seam CRUD Application Fr... > A Declarative Seam DAO Component

16.3. A Declarative Seam DAO Component

A useful feature of Seam DAO components is that they can be declaratively instantiated in the Seam components.xml file, so you do not even need to write any data access code. Let’s look at an example for the Person entity bean adopted from previous examples. Since the DAO now manages the entity bean, you no longer need the @Name annotation on the entity bean:

@Entity
public class Person implements Serializable {

  private long id;
  private String name;
  private int age;
  private String email;
  private String comment;

  ... Getter and Setter Methods ...
}


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint