Left: | ||
Right: |
LEFT | RIGHT |
---|---|
1 /** | |
2 * Copyright (C) 2007 Google Inc. | |
3 * | |
4 * This library is free software; you can redistribute it and/or | |
5 * modify it under the terms of the GNU Lesser General Public | |
6 * License as published by the Free Software Foundation; either | |
7 * version 2.1 of the License, or (at your option) any later version. | |
8 | |
9 * This library is distributed in the hope that it will be useful, | |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
12 * Lesser General Public License for more details. | |
13 | |
14 * You should have received a copy of the GNU Lesser General Public | |
15 * License along with this library; if not, write to the Free Software | |
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, US A | |
17 */ | |
1 package org.hibernate.shards.model; | 18 package org.hibernate.shards.model; |
Max Ross
2008/11/16 21:58:47
apache license
| |
2 | 19 |
3 import org.hibernate.shards.strategy.selection.Replicated; | 20 import org.hibernate.shards.strategy.selection.Replicated; |
4 | 21 |
5 import java.math.BigInteger; | 22 import java.math.BigInteger; |
6 import java.io.Serializable; | 23 import java.io.Serializable; |
7 | 24 |
8 /** | 25 /** |
9 * Created by IntelliJ IDEA. | 26 * Test replicated class representing a City |
Max Ross
2008/11/16 21:58:47
Please change to match other shards source files
| |
10 * User: dantonetti | 27 *· |
11 * Date: Sep 17, 2008 | 28 * @author dantonetti |
12 * Time: 10:33:12 PM | |
13 * To change this template use File | Settings | File Templates. | |
14 */ | 29 */ |
15 @Replicated | 30 @Replicated |
16 public class City { | 31 public class City { |
Max Ross
2008/11/16 21:58:47
indentation
| |
17 » private Serializable cityId; | 32 private Serializable cityId; |
18 » private String name; | 33 private String name; |
19 » private State state; | 34 private State state; |
20 | 35 |
21 » public Serializable getCityId() { | 36 public Serializable getCityId() { |
22 » » return cityId; | 37 return cityId; |
23 » } | 38 } |
24 | 39 |
25 » public void setCityId(Serializable cityId) { | 40 public void setCityId(Serializable cityId) { |
26 » » this.cityId = cityId; | 41 this.cityId = cityId; |
27 » } | 42 } |
28 | 43 |
29 » public String getName() { | 44 public String getName() { |
30 » » return name; | 45 return name; |
31 » } | 46 } |
32 | 47 |
33 » public void setName(String name) { | 48 public void setName(String name) { |
34 » » this.name = name; | 49 this.name = name; |
35 » } | 50 } |
36 | 51 |
37 » public State getState() { | 52 public State getState() { |
38 » » return state; | 53 return state; |
39 » } | 54 } |
40 | 55 |
41 » public void setState(State state) { | 56 public void setState(State state) { |
42 » » this.state = state; | 57 this.state = state; |
43 » } | 58 } |
44 } | 59 } |
LEFT | RIGHT |