Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
*** BEGIN LICENSE BLOCK ***** Version: MPL 2.0 echocat Jomon, Copyright (c) 2012-2013 echocat This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. *** END LICENSE BLOCK ***** /
package org.echocat.jomon.demo.repository;
public class Employee {
    private long _id;
    private String _name;
    private Date _joined;
    public long getId() {
        return ;
    }
    public void setId(long id) {
         = id;
    }
    public String getName() {
        return ;
    }
    public void setName(String name) {
         = name;
    }
    public Date getJoined() {
        return ;
    }
    public void setJoined(Date joined) {
         = joined;
    }
    @Override
    public boolean equals(Object o) {
        final boolean result;
        if (this == o) {
            result = true;
        } else if (!(o instanceof Employee)) {
            result = false;
        } else {
            final Employee that = (Employeeo;
            result =  == that._id;
        }
        return result;
    }
    @Override
    public int hashCode() {
        return (int) ( ^ ( >>> 32));
    }
    @Override
    public String toString() {
        return  + ":" + ( != null ?  : "<unknown>");
    }
New to GrepCode? Check out our FAQ X