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

com.greenpepper.server.domain.AbstractEntity Maven / Gradle / Ivy

There is a newer version: 4.2.4
Show newest version
package com.greenpepper.server.domain;

import com.greenpepper.repository.Marshalizable;

import java.io.Serializable;

import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;


/**
 * Abstract Entity Class.
 * All POJOS have to exntend it.
 * Provides the versioning and the Primary key.
 * 

* Copyright (c) 2006 Pyxis technologies inc. All Rights Reserved. * * @author JCHUET * @version $Id: $Id */ @MappedSuperclass public abstract class AbstractEntity implements Serializable, Marshalizable { private Long id; /** *

Getter for the field id.

* * @return a {@link java.lang.Long} object. */ @Id @GeneratedValue public Long getId() { return this.id; } /** *

Setter for the field id.

* * @param id a {@link java.lang.Long} object. */ public void setId(Long id) { this.id = id; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy