A Java example
Prototype public class Person { private String Name; private Integer ID; public String getName() { return Name; } public Integer getID() { return ID; }}
Notes:
Now let us turn from SQL and look at a Java class that might represent the dynamic aspect of the persistent information stored in the database table.
Note that the Java class has many of the same features as the SQL example. The table name appears as the class name, and the column names appear in instance variables and accessor method signatures.
The Java data types String and Integer aren’t the same as their SQL counterparts, so we will give them a new key, javatype.