Customer.java 576 Bytes
Newer Older
jorgecacs committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
package com.rshk.demo.beans;

import com.fasterxml.jackson.annotation.JsonProperty;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@AllArgsConstructor
@NoArgsConstructor
@Data
public class Customer {

	@JsonProperty(value = "customer_id", required = true)
	private int id;
	
	@JsonProperty(value = "customer_name", required = true)
	private String name;
	
	@JsonProperty(value = "customer_address", required = true)
	private String address;

	@JsonProperty(value = "customer_number", required = true)
	private String phoneNumber;
	
}