All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.sf.mardao.core.domain.AndroidLongEntity Maven / Gradle / Ivy

There is a newer version: 2.3.6
Show newest version
package net.sf.mardao.core.domain;

import javax.persistence.Entity;
import javax.persistence.Id;

/**
 *
 * @author os
 */
@Entity
public abstract class AndroidLongEntity extends AbstractCreatedUpdatedEntity {
    
    @Id
    private Long _id;
    
    @Override
    public String subString() {
        return String.format("_id:%d", _id);
    }

    @Override
    public boolean equals(Object other) {
        if (null == other) {
            return false;
        }
        AndroidLongEntity ale = (AndroidLongEntity) other;
        return null == _id ? null == ale._id : _id.equals(ale._id);
    }

    public AndroidLongEntity() {
    }

    public AndroidLongEntity(Long id) {
        this._id = id;
    }

    public Long getId() {
        return _id;
    }

    public void setId(Long id) {
        this._id = id;
    }

    public Long get_id() {
        return _id;
    }

    public void set_id(Long _id) {
        this._id = _id;
    }

    
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy