summaryrefslogtreecommitdiff
path: root/src/main/java/com/p4square/ccbapi/model/Reference.java
blob: 5ac9800ae2f4f39b7124a46394dfed8fb89aea22 (plain)
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
27
28
29
30
31
32
33
34
package com.p4square.ccbapi.model;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlValue;

/**
 * Generic reference to a id and name.
 */
@XmlAccessorType(XmlAccessType.NONE)
public class Reference {
    @XmlAttribute(name="id")
    private int id;

    @XmlValue
    private String name;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}