1   /*
2    * Address.java
3    *
4    * Created on 29 Декабрь 2005 г., 0:30
5    *
6    * To change this template, choose Tools | Options and locate the template under
7    * the Source Creation and Management node. Right-click the template and choose
8    * Open. You can then make changes to the template in the Source Editor.
9    */
10  
11  package org.weda.domain;
12  
13  import javax.persistence.Entity;
14  import javax.persistence.GeneratedValue;
15  import javax.persistence.GenerationType;
16  import javax.persistence.Id;
17  import org.weda.property.annotations.Description;
18  
19  /**
20   *
21   * @author tim
22   */
23  @Entity
24  public class Address implements java.io.Serializable {
25      private Integer id;
26      private String street;
27  
28      @Description(displayName="Улица")
29      public String getStreet() {
30          return street;
31      }
32  
33      public void setStreet(String street) {
34          this.street = street;
35      }
36      
37      @Id @GeneratedValue(strategy=GenerationType.AUTO)
38      @Description(displayName="s/n")
39      public Integer getId() {
40          return id;
41      }
42  
43      public void setId(Integer id) {
44          this.id = id;
45      }
46      
47      public String toString(){
48          return getStreet();
49      }
50  }