Debian Codegraph @

jax-maven-plugin-test-jaxb/src/main/java/com/github/davidmoten/jaxws/Employee.java

raw
1 package com.github.davidmoten.jaxws;
2
3 import jakarta.xml.bind.annotation.XmlAccessType;
4 import jakarta.xml.bind.annotation.XmlAccessorType;
5 import jakarta.xml.bind.annotation.XmlAttribute;
6 import jakarta.xml.bind.annotation.XmlRootElement;
7
8 @XmlAccessorType(XmlAccessType.FIELD)
9 @XmlRootElement(name = "employee")
10 public class Employee {
11 @XmlAttribute
12 private int id;
13
14 private String name;
15 private double salary;
16 private String designation;
17
18 private Address address;
19
20 public int getId() {
21 return id;
22 }
23
24 public void setId(int id) {
25 this.id = id;
26 }
27
28 public String getName() {
29 return name;
30 }
31
32 public void setName(String name) {
33 this.name = name;
34 }
35
36 public double getSalary() {
37 return salary;
38 }
39
40 public void setSalary(double salary) {
41 this.salary = salary;
42 }
43
44 public String getDesignation() {
45 return designation;
46 }
47
48 public void setDesignation(String designation) {
49 this.designation = designation;
50 }
51
52 public Address getAddress() {
53 return address;
54 }
55
56 public void setAddress(Address address) {
57 this.address = address;
58 }
59 }