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

com.petstore.Pet Maven / Gradle / Ivy

package com.petstore;

import com.github.restup.annotations.ApiName;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Transient;

@ApiName("pet")
@Entity
public class Pet {

    @Id
    @GeneratedValue
    private Integer id;
    private String name;
    @Transient
    private Category category;
    @Transient
    private List photoUrls;
    private Status status;
    @Transient
    private List tags;

    public Integer getId() {
        return id;
    }

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

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Category getCategory() {
        return category;
    }

    public void setCategory(Category category) {
        this.category = category;
    }

    public List getPhotoUrls() {
        return photoUrls;
    }

    public void setPhotoUrls(List photoUrls) {
        this.photoUrls = photoUrls;
    }

    public Status getStatus() {
        return status;
    }

    public void setStatus(Status status) {
        this.status = status;
    }

    public List getTags() {
        return tags;
    }

    public void setTags(List tags) {
        this.tags = tags;
    }

    public enum Status {
        available, pending, sold
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy