javax.json.bind.annotation.JsonbProperty Java Examples

The following examples show how to use javax.json.bind.annotation.JsonbProperty. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Person.java    From microshed-testing with Apache License 2.0 5 votes vote down vote up
@JsonbCreator
public Person(@JsonbProperty("name") String name,
        @JsonbProperty("age") int age,
        @JsonbProperty("id") Long id) {
    this.name = name;
    this.age = age;
    this.id = id == null ? r.nextLong() : id;
}
 
Example #2
Source File: Person.java    From microshed-testing with Apache License 2.0 5 votes vote down vote up
@JsonbCreator
public Person(@JsonbProperty("name") String name,
              @JsonbProperty("age") int age,
              @JsonbProperty("id") Long id) {
    this.name = name;
    this.age = age;
    this.id = id == null ? r.nextLong() : id;
}
 
Example #3
Source File: Person.java    From microshed-testing with Apache License 2.0 5 votes vote down vote up
@JsonbCreator
public Person(@JsonbProperty("name") String name,
              @JsonbProperty("age") int age,
              @JsonbProperty("id") Long id) {
    this.name = name;
    this.age = age;
    this.id = id == null ? r.nextLong() : id;
}
 
Example #4
Source File: Person.java    From microshed-testing with Apache License 2.0 5 votes vote down vote up
@JsonbCreator
public Person(@JsonbProperty("name") String name,
              @JsonbProperty("age") int age,
              @JsonbProperty("id") Long id) {
    this.name = name;
    this.age = age;
    this.id = id == null ? r.nextLong() : id;
}
 
Example #5
Source File: Person.java    From microshed-testing with Apache License 2.0 5 votes vote down vote up
@JsonbCreator
public Person(@JsonbProperty("name") String name,
        @JsonbProperty("age") int age,
        @JsonbProperty("id") Long id) {
    this.name = name;
    this.age = age;
    this.id = id == null ? r.nextLong() : id;
}
 
Example #6
Source File: Person.java    From microshed-testing with Apache License 2.0 5 votes vote down vote up
@JsonbCreator
public Person(@JsonbProperty("name") String name,
        @JsonbProperty("age") int age,
        @JsonbProperty("id") Long id) {
    this.name = name;
    this.age = age;
    this.id = id == null ? r.nextLong() : id;
}
 
Example #7
Source File: Person.java    From microshed-testing with Apache License 2.0 5 votes vote down vote up
@JsonbCreator
public Person(@JsonbProperty("name") String name,
        @JsonbProperty("age") int age,
        @JsonbProperty("id") Long id) {
    this.name = name;
    this.age = age;
    this.id = id == null ? r.nextLong() : id;
}
 
Example #8
Source File: Order.java    From openapi-generator with Apache License 2.0 4 votes vote down vote up
/**
 * Get id
 * @return id
**/
@JsonbProperty("id")
public Long getId() {
  return id;
}
 
Example #9
Source File: Greeting.java    From quarkus with Apache License 2.0 4 votes vote down vote up
@JsonbCreator
public Greeting(@JsonbProperty("message") String message, @JsonbProperty("date") LocalDate date) {
    this.message = message;
    this.date = date;
}
 
Example #10
Source File: SomeObjectAnnotatedGetters.java    From smallrye-graphql with Apache License 2.0 4 votes vote down vote up
@JsonbProperty("f")
public List<String> getJsonbProperty() {
    return jsonbProperty;
}
 
Example #11
Source File: User.java    From openapi-generator with Apache License 2.0 4 votes vote down vote up
/**
 * Get phone
 * @return phone
**/
@JsonbProperty("phone")
public String getPhone() {
  return phone;
}
 
Example #12
Source File: Order.java    From openapi-generator with Apache License 2.0 4 votes vote down vote up
/**
 * Get petId
 * @return petId
**/
@JsonbProperty("petId")
public Long getPetId() {
  return petId;
}
 
Example #13
Source File: Order.java    From openapi-generator with Apache License 2.0 4 votes vote down vote up
/**
 * Get quantity
 * @return quantity
**/
@JsonbProperty("quantity")
public Integer getQuantity() {
  return quantity;
}
 
Example #14
Source File: Order.java    From openapi-generator with Apache License 2.0 4 votes vote down vote up
/**
 * Get shipDate
 * @return shipDate
**/
@JsonbProperty("shipDate")
public Date getShipDate() {
  return shipDate;
}
 
Example #15
Source File: Order.java    From openapi-generator with Apache License 2.0 4 votes vote down vote up
/**
 * Order Status
 * @return status
**/
@JsonbProperty("status")
public StatusEnum getStatus() {
  return status;
}
 
Example #16
Source File: User.java    From openapi-generator with Apache License 2.0 4 votes vote down vote up
/**
 * Get lastName
 * @return lastName
**/
@JsonbProperty("lastName")
public String getLastName() {
  return lastName;
}
 
Example #17
Source File: User.java    From openapi-generator with Apache License 2.0 4 votes vote down vote up
/**
 * Get password
 * @return password
**/
@JsonbProperty("password")
public String getPassword() {
  return password;
}
 
Example #18
Source File: User.java    From openapi-generator with Apache License 2.0 4 votes vote down vote up
/**
 * Get email
 * @return email
**/
@JsonbProperty("email")
public String getEmail() {
  return email;
}
 
Example #19
Source File: ModelApiResponse.java    From openapi-generator with Apache License 2.0 4 votes vote down vote up
/**
 * Get message
 * @return message
**/
@JsonbProperty("message")
public String getMessage() {
  return message;
}
 
Example #20
Source File: SomeObjectAnnotatedGetters.java    From smallrye-graphql with Apache License 2.0 4 votes vote down vote up
@Name("a")
@Query("b")
@JsonbProperty("c")
public String getName() {
    return name;
}
 
Example #21
Source File: Prescription.java    From example-health-jee-openshift with Apache License 2.0 4 votes vote down vote up
@JsonbProperty("CODE")
public void setMedicationId(String medicationId) {
	this.medicationId = medicationId;
}
 
Example #22
Source File: Prescription.java    From example-health-jee-openshift with Apache License 2.0 4 votes vote down vote up
@JsonbProperty("CA_MEDICATION_ID")
public String getMedicationId() {
	return this.medicationId;
}
 
Example #23
Source File: Prescription.java    From example-health-jee-openshift with Apache License 2.0 4 votes vote down vote up
@JsonbProperty("DESCRIPTION")
public void setDrugName(String drugName) {
	this.drugName = drugName;
}
 
Example #24
Source File: Prescription.java    From example-health-jee-openshift with Apache License 2.0 4 votes vote down vote up
@JsonbProperty("CA_DRUG_NAME")
public String getDrugName() {
	return this.drugName;
}
 
Example #25
Source File: Observation.java    From example-health-jee-openshift with Apache License 2.0 4 votes vote down vote up
@JsonbProperty("NUMERICVALUE")
public String getNumericValue() {
	return this.numericValue;
}
 
Example #26
Source File: Observation.java    From example-health-jee-openshift with Apache License 2.0 4 votes vote down vote up
@JsonbProperty("DATE")
public void setDate(String date) {
	this.date = date;
}
 
Example #27
Source File: Observation.java    From example-health-jee-openshift with Apache License 2.0 4 votes vote down vote up
@JsonbProperty("DATEOFOBSERVATION")
public String getDate() {
	return this.date;
}
 
Example #28
Source File: Observation.java    From example-health-jee-openshift with Apache License 2.0 4 votes vote down vote up
@JsonbProperty("CHARACTERVALUE")
public String getCharacterValue() {
	return this.characterValue;
}
 
Example #29
Source File: CityCounts.java    From example-health-jee-openshift with Apache License 2.0 4 votes vote down vote up
@JsonbProperty("NUM_IN_CITY")
public Long getPopulation() {
    return population;
}
 
Example #30
Source File: CityCounts.java    From example-health-jee-openshift with Apache License 2.0 4 votes vote down vote up
@JsonbProperty("POSTCODE")
public String getPostcode() {
    return postcode;
}