Class Person

Our business object is a class called Person containing the following attributes of a real life person:

Its a simple JavaBean with the attributes lastName, firstName and phone and their corresponding public get- and set-methods.

A persistent class must be identified uniquely using a unique primary key. You can manage the object identity yourself from within your application. Then you will need to provide an extra primary key class for each of your persistence-capable classes. You may also delegate the management of the object identity to Signsoft intelliBO using a generic implementation of the primary key class. In our sample we will use this option, thus we do not need a special key attribute in the class.

The Person class looks like this:

package com.intellibo.sample.firststeps;

public class Person
{
  private String firstName;
  private String lastName;
  private String phone;

public String getFirstName()
{
 return firstName;
}
public void setFirstName(String firstName)
{
 this.firstName = firstName;
}
public String getLastName()
{
 return lastName;
}
public void setLastName(String lastName)
{
 this.lastName = lastName;
}
public String getPhone()
{
 return phone;
}
public void setPhone(String phone)
{
 this.phone = phone;
}
}

Create this class in your business project and compile it to the business/classes-directory.