-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCustomer.java
71 lines (56 loc) · 1.27 KB
/
Customer.java
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
package com.oracle.rsi.demospringbatch;
import oracle.rsi.StreamEntity;
import oracle.rsi.StreamField;
/**
* Mapping class, both for the ItemReader and the ItemWriter.
* For RSI, it maps to the annotated table in tableName and
* to the columns using the attribute names.
* Create a table in the target database using the below ddl.
* CREATE TABLE CUSTOMERS (
* ID NUMBER(20,0),
* NAME VARCHAR2(90 BYTE),
* REGION VARCHAR2(10 BYTE))
*
* @author psilberk
*
*/
@StreamEntity(tableName = "customers")
public class Customer {
@StreamField
private long id;
@StreamField
private String name;
@StreamField
private String region;
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getRegion() {
return region;
}
public void setRegion(String region) {
this.region = region;
}
public Customer() {
}
public Customer(long id, String name, String region) {
super();
this.id = id;
this.name = name;
this.region = region;
}
@Override
public String toString() {
return "Customer [id=" + id + ", name=" + name + ", region=" + region
+ "]";
}
}