// Path: acmeair-customer-common/src/main/java/com/acmeair/entities/Coupon.java
// public interface Coupon {
// 
//   int getId();
// 
//   void setId(int id);
// 
//   String getPromotionId();
// 
//   void setPromotionId(String promotionId);
// 
//   Date getTime();
// 
//   void setTime(Date time);
// 
//   float getDiscount();
// 
//   void setDiscount(float discount);
// 
//   String getCustomerId();
// 
//   void setCustomerId(String customerId);
// 
//   boolean isUsed();
// 
//   void setUsed(boolean used);
// }


import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import com.acmeair.entities.Coupon;
/*
 *   Copyright 2017 Huawei Technologies Co., Ltd
 *
 *   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.acmeair.morphia.entities;





@Document(collection = "coupon")
@Entity(name = "coupon")
// Path: acmeair-customer-common/src/main/java/com/acmeair/entities/Coupon.java
// public interface Coupon {
// 
//   int getId();
// 
//   void setId(int id);
// 
//   String getPromotionId();
// 
//   void setPromotionId(String promotionId);
// 
//   Date getTime();
// 
//   void setTime(Date time);
// 
//   float getDiscount();
// 
//   void setDiscount(float discount);
// 
//   String getCustomerId();
// 
//   void setCustomerId(String customerId);
// 
//   boolean isUsed();
// 
//   void setUsed(boolean used);
// }


// Path: acmeair-customer-service/src/main/java/com/acmeair/morphia/entities/CouponImpl.java
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import com.acmeair.entities.Coupon;

/*
 *   Copyright 2017 Huawei Technologies Co., Ltd
 *
 *   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.acmeair.morphia.entities;





@Document(collection = "coupon")
@Entity(name = "coupon")
public class CouponImpl implements Coupon, Serializable {