Red Hat Web Application Framework 6.1 Bedienungsanleitung Seite 142

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 230
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 141
128 Chapter 11. Services Tutorials
Figure 11-4. Category hierarchy before and after code execution
Adding the "Titanic" category to two categories looks the same as adding it to a single category. The
first category to which an item (category or other ACSObject) is added is explicitly added as the
default category. If a category/item only has one parent, that parent is implicitly the default.
11.2.2. Deleting a Category
// Fetch the Movies category from the database, assuming its id is 123
Category category = new Category(new BigDecimal(123));
// Delete the Movies category.
category.deleteCategoryAndRemap();
Example 11-2. Category deletion
Seitenansicht 141
1 2 ... 137 138 139 140 141 142 143 144 145 146 147 ... 229 230

Kommentare zu diesen Handbüchern

Keine Kommentare