Example usage for java.io Serializable equals

List of usage examples for java.io Serializable equals

Introduction

In this page you can find the example usage for java.io Serializable equals.

Prototype

public boolean equals(Object obj) 

Source Link

Document

Indicates whether some other object is "equal to" this one.

Usage

From source file:ubic.gemma.persistence.service.AbstractDao.java

@Override
public T create(T entity) {
    Serializable id = this.getSessionFactory().getCurrentSession().save(entity);
    assert entity.getId() != null : "No ID received for " + entity;
    assert id.equals(entity.getId());
    return entity;
}