Using Java Persistence API Within a Visual Web JSF Application
Source: Sun Microsystems
Using NetBeans IDE 6.0 and the Visual Web tools, one can write applications that connect to database tables using the Java Persistence API (JPA) in addition to the Visual Web JSF data provider components. After one establishes the connection to the database table, one can use the Java Persistence API to perform database CRUD operations (that is, create, read, update, and delete operations). The ability to use the Java Persistence API gives one greater flexibility when developing a database-dependent application. This paper takes the user through the set-up steps for using the Java Persistence API from a Visual Web application.