@Bean(fluentSetters=true, properties="id,petId,username,status,shipDate") @Example(value="{id:123,petId:456,shipDate:\'2012-12-21\',status:\'APPROVED\'}") @Entity(name="PetstoreOrder") public class Order extends Object
Constructor and Description |
---|
Order() |
Modifier and Type | Method and Description |
---|---|
Order |
apply(CreateOrder o)
Applies the specified create data to this order.
|
Order |
apply(Order o)
Applies the specified order this order.
|
static Order |
example()
This shows an example generated from a static method.
|
long |
getId() |
long |
getPetId() |
Date |
getShipDate() |
OrderStatus |
getStatus() |
String |
getUsername() |
Order |
id(long value) |
Order |
petId(long value) |
Order |
shipDate(Date value) |
Order |
status(OrderStatus value) |
Order |
username(String value) |
public Order()
public Order apply(CreateOrder o)
o
- The create data to apply.public Order apply(Order o)
o
- The order to apply.public long getId()
public Order id(long value)
value
- The public Date getShipDate()
public Order shipDate(Date value)
value
- The public OrderStatus getStatus()
public Order status(OrderStatus value)
value
- The public long getPetId()
public Order petId(long value)
value
- The public String getUsername()
public Order username(String value)
value
- The Copyright © 2016–2019 The Apache Software Foundation. All rights reserved.