1 /*
2 * Copyright 2010-2026 the original author or authors.
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 * https://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 org.mybatis.jpetstore.domain;
17
18 import java.io.Serializable;
19
20 /**
21 * The Class Sequence.
22 */
23 public class Sequence implements Serializable {
24
25 /** The serial version uid. */
26 private static final long serialVersionUID = 8278780133180137281L;
27
28 /** The name. */
29 private String name;
30 /** The next id. */
31 private int nextId;
32
33 /**
34 * Instantiates a new sequence.
35 */
36 public Sequence() {
37 }
38
39 /**
40 * Instantiates a new sequence.
41 *
42 * @param name
43 * the name
44 * @param nextId
45 * the next id
46 */
47 public Sequence(String name, int nextId) {
48 this.name = name;
49 this.nextId = nextId;
50 }
51
52 /**
53 * Gets the name.
54 *
55 * @return the name
56 */
57 public String getName() {
58 return name;
59 }
60
61 /**
62 * Sets the name.
63 *
64 * @param name
65 * the name
66 */
67 public void setName(String name) {
68 this.name = name;
69 }
70
71 /**
72 * Gets the next id.
73 *
74 * @return the next id
75 */
76 public int getNextId() {
77 return nextId;
78 }
79
80 /**
81 * Sets the next id.
82 *
83 * @param nextId
84 * the next id
85 */
86 public void setNextId(int nextId) {
87 this.nextId = nextId;
88 }
89
90 }