@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
Used to control format of prices in HTML view.
|
Constructor and Description |
---|
Pet() |
Modifier and Type | Method and Description |
---|---|
Pet |
apply(CreatePet x)
Applies the specified data to this object.
|
Pet |
apply(UpdatePet x)
Applies the specified data to this object.
|
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 value) |
Pet |
name(String value) |
Pet |
photo(String value) |
Pet |
price(float value) |
Pet |
species(Species value) |
Pet |
status(PetStatus value) |
Pet |
tags(List<String> value) |
Pet |
tags(String... value) |
public Pet()
public Pet apply(CreatePet x)
x
- The data to apply.public Pet apply(UpdatePet x)
x
- The data to apply.public long getId()
public Pet id(long value)
value
- The public Pet name(String value)
value
- The public float getPrice()
public Pet price(float value)
value
- The public Species getSpecies()
public Pet species(Species value)
value
- The public Pet tags(List<String> value)
value
- The public Pet tags(String... value)
value
- The public Pet status(PetStatus value)
value
- The public Pet photo(String value)
value
- The public boolean hasStatus(PetStatus... statuses)
statuses
- The statuses to match against.public boolean hasTag(String... tags)
tags
- The tags to match against.Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.