package demo;

/**
 * Generated from demo.StoryBean by vDoclet/EJB
 */
public class StoryKey implements java.io.Serializable {


    //---( Fields )---

    public long id;

    //---( Constructors )---

    public StoryKey() {
    }

    public StoryKey( long id ) {
        this.id = id;
    }

    //---( Field access )---

    public long getId() {
        return this.id;
    }

    //---( Equality )---

    public boolean equals( Object o ) {
        if( !(o instanceof StoryKey)) return false;
        StoryKey other = (StoryKey)o;
        boolean eq = true;
        eq = eq && (this.id == other.id);
        return eq;
    }

    public int hashCode() {
        int hashCode = 0;
        hashCode += (int)this.id;
        return hashCode;
    }

    //---( toString )---

    public String toString() {
        return ("[StoryKey" +
                "/id=" + this.id +
                "]");
    }

}