org.springframework.object.GenericObject Maven / Gradle / Ivy
package org.springframework.object;
import java.io.Serializable;
import javax.persistence.Transient;
import org.springframework.data.domain.Persistable;
/**
* @see org.springframework.hateoas.mvc.ControllerLinkBuilder#linkTo(Class)
* @see javax.xml.bind.annotation.XmlElement
* @see org.springframework.hateoas.Link#ATOM_NAMESPACE
*/
public abstract class GenericObject extends AbstractObject implements Persistable {
private static final long serialVersionUID = -867675153230910644L;
@Override
@Transient
public boolean isNew() {
return getId() == null;
}
}