started @ 5:52 PM on 10/26/07 on a train. 5:53 PM: "To my wife Tina, whose emotional and financial support made this book possible; and to Jennifer and Jeremy, who now think that their daddy has become addicted to his computer." 6:03 PM: "Table 4-1. Kinds of instances Behavior Instance of atransient class Transient instance Persistent instance Transactional Transient transactional instance Persistent instance Nontransactional Instance of a transient class Transient instance Persistent nontransactional instance" 6:04 PM: "TRENTON MAKES, THE WORLD TAKES" 6:07 PM: worst paragraph ever: "A relational schema is organized as a set of tables. A table is usually defined for each entity in the application domain you are modeling. When you design an object model, an entity is represented by a class. Each table consists of rows and columns. A row contains the data for a specific instance of an entity being modeled. A column contains the values for one of the attributes of the entity. A table cell is the intersection of a particular row and column in the table, and it contains the value of an attribute for a specific entity instance." 6:20 PM: "CRUD operations of using a database: Create, Read, Update, and Delete" 6:24 PM: cool cool cool: "public static void queryCustomers(PersistenceManager pm, String city, String state) { Extent customerExtent = pm.getExtent(Customer.class, true); [1] String filter = "address.city == city && state == address.state"; [2] Query query = pm.newQuery(customerExtent, filter); [3] query.declareParameters("String city, String state"); [4] query.setOrdering( [5] "address.zipcode ascending, lastName ascending, firstName ascending"); Collection result = (Collection) query.execute(city, state); [6] Iterator iter = result.iterator( ); while (iter.hasNext( )) { [7] Customer customer = (Customer) iter.next( ); Address address = customer.getAddress( ); System.out.print(address.getZipcode( )); System.out.print(" "); System.out.print(customer.getFirstName( )); System.out.print(" "); System.out.print(customer.getLastName( )); System.out.print(" "); System.out.println(address.getStreet( )); } query.close(result); [8] }" done @ 6:46 PM on 10/26/07