/**
* Copyright Microsoft Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.microsoft.azure.storage.samples.table;
import java.util.UUID;
import com.microsoft.azure.storage.table.TableServiceEntity;
public class CustomerEntity extends TableServiceEntity {
// Note: An entity's partition and row key uniquely identify the entity in
// the table.
// Entities with the same partition key can be queried faster than those
// with different partition keys.
public CustomerEntity(String lastName, String firstName) {
this.partitionKey = lastName;
this.rowKey = firstName;
}
public CustomerEntity() {
}
public String Email;
public String PhoneNumber;
public UUID Id;
public String getEmail() {
return this.Email;
}
public void setEmail(String email) {
this.Email = email;
}
public String getPhoneNumber() {
return this.PhoneNumber;
}
public void setPhoneNumber(String phoneNumber) {
this.PhoneNumber = phoneNumber;
}
public UUID getId() {
return this.Id;
}
public void setId(UUID id) {
this.Id = id;
}
}