View Javadoc

1   /*
2    * Copyright 2000-2004 The Apache Software Foundation.
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *      http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package com.ibatis.jpetstore.domain;
17  
18  import java.io.Serializable;
19  
20  public class Sequence implements Serializable {
21  
22    /* Private Fields */
23  
24    private String name;
25    private int nextId;
26  
27    /* Constructors */
28  
29    public Sequence() {
30    }
31  
32    public Sequence(String name, int nextId) {
33      this.name = name;
34      this.nextId = nextId;
35    }
36  
37    /* JavaBeans Properties */
38  
39    public String getName() {
40      return name;
41    }
42  
43    public void setName(String name) {
44      this.name = name;
45    }
46  
47    public int getNextId() {
48      return nextId;
49    }
50  
51    public void setNextId(int nextId) {
52      this.nextId = nextId;
53    }
54  
55  }