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