Coverage Report - org.apache.camel.example.etl.CustomerEntity
 
Classes in this File Line Coverage Branch Coverage Complexity
CustomerEntity
0% 
N/A 
0
 
 1  
 /**
 2  
  * Licensed to the Apache Software Foundation (ASF) under one or more
 3  
  * contributor license agreements.  See the NOTICE file distributed with
 4  
  * this work for additional information regarding copyright ownership.
 5  
  * The ASF licenses this file to You under the Apache License, Version 2.0
 6  
  * (the "License"); you may not use this file except in compliance with
 7  
  * the License.  You may obtain a copy of the License at
 8  
  *
 9  
  *      http://www.apache.org/licenses/LICENSE-2.0
 10  
  *
 11  
  * Unless required by applicable law or agreed to in writing, software
 12  
  * distributed under the License is distributed on an "AS IS" BASIS,
 13  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 14  
  * See the License for the specific language governing permissions and
 15  
  * limitations under the License.
 16  
  */
 17  
 package org.apache.camel.example.etl;
 18  
 
 19  
 import javax.persistence.Entity;
 20  
 import javax.persistence.GeneratedValue;
 21  
 import javax.persistence.Id;
 22  
 import javax.xml.bind.annotation.XmlAccessType;
 23  
 import javax.xml.bind.annotation.XmlAccessorType;
 24  
 import javax.xml.bind.annotation.XmlAttribute;
 25  
 import javax.xml.bind.annotation.XmlRootElement;
 26  
 
 27  
 /**
 28  
  * An example entity bean which can be marshalled to/from XML
 29  
  * 
 30  
  * @version $Revision: 1.1 $
 31  
  */
 32  
 @Entity(name = "Customer")
 33  
 @XmlRootElement(name = "customer")
 34  
 @XmlAccessorType(XmlAccessType.FIELD)
 35  0
 public class CustomerEntity {
 36  
     @XmlAttribute
 37  
     private Long id;
 38  
     private String userName;
 39  
     private String firstName;
 40  
     private String surname;
 41  
     private String street;
 42  
     private String city;
 43  
     private String zip;
 44  
     private String phone;
 45  
 
 46  
     public String toString() {
 47  0
         return "Customer[userName: " + userName + " firstName: " + firstName + " surname: " + surname + "]";
 48  
     }
 49  
 
 50  
     @Id
 51  
     @GeneratedValue
 52  
     public Long getId() {
 53  0
         return id;
 54  
     }
 55  
 
 56  
     public void setId(Long id) {
 57  0
         this.id = id;
 58  0
     }
 59  
 
 60  
     public String getCity() {
 61  0
         return city;
 62  
     }
 63  
 
 64  
     public void setCity(String city) {
 65  0
         this.city = city;
 66  0
     }
 67  
 
 68  
     public String getFirstName() {
 69  0
         return firstName;
 70  
     }
 71  
 
 72  
     public void setFirstName(String firstName) {
 73  0
         this.firstName = firstName;
 74  0
     }
 75  
 
 76  
     public String getPhone() {
 77  0
         return phone;
 78  
     }
 79  
 
 80  
     public void setPhone(String phone) {
 81  0
         this.phone = phone;
 82  0
     }
 83  
 
 84  
     public String getStreet() {
 85  0
         return street;
 86  
     }
 87  
 
 88  
     public void setStreet(String street) {
 89  0
         this.street = street;
 90  0
     }
 91  
 
 92  
     public String getSurname() {
 93  0
         return surname;
 94  
     }
 95  
 
 96  
     public void setSurname(String surname) {
 97  0
         this.surname = surname;
 98  0
     }
 99  
 
 100  
     public String getUserName() {
 101  0
         return userName;
 102  
     }
 103  
 
 104  
     public void setUserName(String userName) {
 105  0
         this.userName = userName;
 106  0
     }
 107  
 
 108  
     public String getZip() {
 109  0
         return zip;
 110  
     }
 111  
 
 112  
     public void setZip(String zip) {
 113  0
         this.zip = zip;
 114  0
     }
 115  
 }