View Javadoc

1   package org.joda.time.contrib.hibernate.testmodel;
2   
3   import org.joda.time.Duration;
4   
5   import java.io.Serializable;
6   
7   /**
8    *
9    * @author gjoseph
10   * @author $Author: $ (last edit)
11   * @version $Revision: $
12   */
13  public class SomethingThatLasts implements Serializable {
14      private long id;
15      private String name;
16      private Duration theDuration;
17  
18      public long getId() {
19          return id;
20      }
21  
22      public void setId(long id) {
23          this.id = id;
24      }
25  
26      public String getName() {
27          return name;
28      }
29  
30      public void setName(String name) {
31          this.name = name;
32      }
33  
34      public Duration getTheDuration() {
35          return theDuration;
36      }
37  
38      public void setTheDuration(Duration theDuration) {
39          this.theDuration = theDuration;
40      }
41  
42  }