import java.rmi.*;
import javax.ejb.*;
import javax.rmi.PortableRemoteObject;
import javax.naming.InitialContext;
/**
* RegionBean is an entity bean with "container managed persistence".
* The state of an instance is stored into a relational database.
* The following table should exist:
* <pre>
* CREATE TABLE regions (
* id INTEGER UNSIGNED NOT NULL UNIQUE,
* name VARCHAR(20),
* PRIMARY KEY(id)
* );
* </pre>
* @version 1.0
*/
public class RegionBean implements EntityBean
{
/* Class member variables */
public Integer id;
public String name;
[...]
}
|