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

simplyrestful.springdata.resources.SpringDataHALResource Maven / Gradle / Ivy

There is a newer version: 0.13.3
Show newest version
package simplyrestful.springdata.resources;

import java.util.UUID;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;
import javax.validation.constraints.NotNull;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import simplyrestful.api.framework.resources.HALResource;

@JsonIgnoreProperties(ignoreUnknown = true)
@MappedSuperclass
public abstract class SpringDataHALResource extends HALResource{
	@Id
	@Column(name = "id")
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@JsonIgnore
	private long id;
	
	@JsonIgnore
	@NotNull
	UUID uuid;

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}
	
	public UUID getUUID() {
		return uuid;
	}

	public void setUUID(UUID uuid) {
		this.uuid = uuid;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy