One of the advantages of using GlassFish as the application server for this application is that it includes a built-in persistence manager, the Java Persistence API. The address includes street, city, state, zip code, latitude, and longitude.įor example, here are the contents of the category table: Contains information about the address of each item in the catalog. For each item, the table contains an ID number, product ID number, name, description, URL of the item's image, URL of the item's thumbnail image, price, and address ID. Contains information about each item in the catalog, such as beach dog. For each product, the table contains an ID number, product ID number, name, description, and URL of a representative image. Contains information about each product type within a category, such as medium dogs or small dogs. For each category, the table contains an identification (ID) number, name, description, and URL of a representative image. Contains information about each item category in the catalog, such as dogs. The CatalogĬentral to the application is the catalog, which is contained in a MySQL database named petcatalog. If you haven't already done so, download and expand the petcatalog application package. Inside the Applicationīefore building the application, let's examine the components of the completed application. This demonstrates the application's delete or D capability. This demonstrates the application's update or U capability. This represents the application's create or C capability.Ī user can also edit an entry in the catalog. As Figure 2 shows, a user can create a new item and add it to the catalog. ![]() Retrieving information from the catalog represents the read or R capability of the CRUD application. Figure 1 shows a page that the application displays with this type of information.įigure 1. For example, users can search for a specific type of pet, such as medium-sized dogs, and display information about the items of that type in the catalog. The application for this article allows users to search an online catalog of pets. You can examine the completed CRUD application by downloading and expanding the petcatalog application package. ![]() Specifically, you'll take advantage of features in NetBeans IDE 6.5, GlassFish v2UR2, and MySQL 5.1 Community Server to build and deploy the application. This article shows you how to use the NetBeans IDE with GlassFish and MySQL to create the CRUD application. A precursor to the next version of GlassFish, called the GlassFish v3 Prelude, is also available with NetBeans IDE 6.5. ![]() ![]() You can also download GlassFish v2UR2 with either NetBeans IDE 6.1 or NetBeans IDE 6.5 in a single bundle. In addition, NetBeans IDE 6.1 With GlassFish and MySQL Bundle Download is available that integrates GlassFish v2 Update Release 2 (UR2) and MySQL 5.0 Community Server into NetBeans IDE 6.1. For example, plug-ins are available for both GlassFish and MySQL to integrate them into the NetBeans IDE and the Eclipse IDE. The application uses the Java Persistence API implemented in GlassFish to manage data persistence.Īn important characteristic of both GlassFish and MySQL is that they're easily integrated into popular development tools. In Part 2, you'll learn how to develop a create, read, update, delete (CRUD) web application that uses GlassFish and MySQL. Part 1 of the series describes the advantages of using GlassFish with MySQL and illustrates why the combination is a perfect choice for developing and deploying web applications. This is the second article in a series of articles on GlassFish and MySQL.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |