@Bean(typeName="Pet", fluentSetters=true, properties="id,species,name,tags,price,status,photo") @Entity(name="PetstorePet") public class Pet extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Pet.PriceRender |
Constructor and Description |
---|
Pet() |
Modifier and Type | Method and Description |
---|---|
Pet |
apply(CreatePet x) |
Pet |
apply(UpdatePet x) |
static Pet |
example()
This shows an example generated from a static method.
|
URI |
getEdit() |
long |
getId() |
String |
getName() |
String |
getPhoto() |
float |
getPrice() |
Species |
getSpecies() |
PetStatus |
getStatus() |
List<String> |
getTags() |
boolean |
hasStatus(PetStatus... statuses) |
boolean |
hasTag(String... tags) |
Pet |
id(long id) |
Pet |
name(String name) |
Pet |
photo(String photo) |
Pet |
price(float price) |
Pet |
species(Species species) |
Pet |
status(PetStatus status) |
Pet |
tags(List<String> tags) |
Pet |
tags(String... tags) |
public Pet()
public long getId()
public float getPrice()
public Species getSpecies()
Copyright © 2018 Apache. All rights reserved.