package jp.go.aist.six.test.util.castor.example.myapp;
import jp.go.aist.six.util.persist.Persistable;
public class ProductGroup
implements Persistable<Integer>
{
private int _id;
private String _name;
public int getId()
{
return _id;
}
public void setId( int id )
{
_id = id;
}
public String getName()
{
return _name;
}
public void setName( String name )
{
_name = name;
}
public String toString()
{
return "<id: " + _id + " name: " + _name + ">";
}
public void setPersistentID(
final Integer id
)
{
if (id != null) {
setId( id.intValue() );
}
}
public Integer getPersistentID()
{
return (new Integer( getId() ));
}
}
|