This is an example of a simple case. A single table "PERSON" stores the first, and last names of a person. The table is keyed by an artifical primary key created by an Oracle sequence. We will generate the code for a Java class Person.java for reading and writing to this table.
The ddl for creating the PERSON table is in table-definition.sql.
Person person = new Person(); // Create a new empy Person
division.setFirstName("John"); // set the first name
division.setLastName("Smith"); // set the last name
division.store(); // Insert the row to the table
Assume that new person row was created a primary key of "1".
Person person = new Person(1);
Location location = new Location(30); // Get the existing location
System.out.println("First Name = " + person.getFirstName() );
System.out.println("Last Name = " + person.getLastName() );
Location location = new Location(1); // Get the existing location
location.setFirstName("Jane); // Change the name
location.store(); // Updates the person table