-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Li Wang
committed
Jun 11, 2015
1 parent
bbdcfc0
commit a66f440
Showing
6 changed files
with
120 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
DeleteRecords/src/main/java/io/pivotal/domain/Customer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package io.pivotal.domain; | ||
|
||
public class Customer { | ||
|
||
private Integer customerNumber; | ||
private String firstName; | ||
private String lastName; | ||
|
||
public Customer() { | ||
} | ||
|
||
public Customer(int customerNumber, String firstName, String lastName) { | ||
super(); | ||
this.customerNumber = new Integer(customerNumber); | ||
this.firstName = firstName; | ||
this.lastName = lastName; | ||
} | ||
|
||
public Integer getCustomerNumber() { | ||
return customerNumber; | ||
} | ||
|
||
public String getFirstName() { | ||
return firstName; | ||
} | ||
|
||
public String getLastName() { | ||
return lastName; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "Customer [customerNumber=" + customerNumber + ", firstName=" | ||
+ firstName + ", lastName=" + lastName + "]"; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version="1.0"?> | ||
<!DOCTYPE cache PUBLIC | ||
"-//GemStone Systems, Inc.//GemFire Declarative Caching 8.0//EN" | ||
"http://www.gemstone.com/dtd/cache8_0.dtd"> | ||
|
||
<cache> | ||
|
||
<pdx read-serialized="true"> | ||
<pdx-serializer> | ||
<class-name>com.gemstone.gemfire.pdx.ReflectionBasedAutoSerializer</class-name> | ||
<parameter name="classes"> | ||
<string>io.pivotal.domain.*</string> | ||
</parameter> | ||
</pdx-serializer> | ||
</pdx> | ||
|
||
<region name="Customer"> | ||
<region-attributes refid="REPLICATE" /> | ||
</region> | ||
|
||
</cache> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package io.pivotal.domain; | ||
|
||
public class Customer { | ||
|
||
private Integer customerNumber; | ||
private String firstName; | ||
private String lastName; | ||
|
||
public Customer() { | ||
} | ||
|
||
public Customer(int customerNumber, String firstName, String lastName) { | ||
super(); | ||
this.customerNumber = new Integer(customerNumber); | ||
this.firstName = firstName; | ||
this.lastName = lastName; | ||
} | ||
|
||
public Integer getCustomerNumber() { | ||
return customerNumber; | ||
} | ||
|
||
public String getFirstName() { | ||
return firstName; | ||
} | ||
|
||
public String getLastName() { | ||
return lastName; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "Customer [customerNumber=" + customerNumber + ", firstName=" | ||
+ firstName + ", lastName=" + lastName + "]"; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version="1.0"?> | ||
<!DOCTYPE cache PUBLIC | ||
"-//GemStone Systems, Inc.//GemFire Declarative Caching 8.0//EN" | ||
"http://www.gemstone.com/dtd/cache8_0.dtd"> | ||
|
||
<cache> | ||
|
||
<pdx read-serialized="true"> | ||
<pdx-serializer> | ||
<class-name>com.gemstone.gemfire.pdx.ReflectionBasedAutoSerializer</class-name> | ||
<parameter name="classes"> | ||
<string>io.pivotal.domain.*</string> | ||
</parameter> | ||
</pdx-serializer> | ||
</pdx> | ||
|
||
<region name="Customer"> | ||
<region-attributes refid="REPLICATE" /> | ||
</region> | ||
|
||
</cache> | ||
|