PageRenderTime 13ms CodeModel.GetById 3ms app.highlight 7ms RepoModel.GetById 1ms app.codeStats 0ms

/hazelcast-hibernate/src/test/java/com/hazelcast/hibernate/entity/DummyEntity.java

https://bitbucket.org/gabral6_gmailcom/hazelcast
Java | 95 lines | 57 code | 23 blank | 15 comment | 0 complexity | 5efc626a1d2e7394b730172546015692 MD5 | raw file
 1/*
 2 * Copyright (c) 2008-2013, Hazelcast, Inc. All Rights Reserved.
 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
17package com.hazelcast.hibernate.entity;
18
19import java.util.Date;
20import java.util.Set;
21
22public class DummyEntity {
23
24    private long id;
25
26    private int version;
27
28    private String name;
29
30    private double value;
31
32    private Date date;
33
34    private Set<DummyProperty> properties;
35
36    public DummyEntity() {
37        super();
38    }
39
40    public DummyEntity(long id, String name, double value, Date date) {
41        super();
42        this.id = id;
43        this.name = name;
44        this.value = value;
45        this.date = date;
46    }
47
48    public long getId() {
49        return id;
50    }
51
52    public void setId(long id) {
53        this.id = id;
54    }
55
56    public int getVersion() {
57        return version;
58    }
59
60    public void setVersion(int version) {
61        this.version = version;
62    }
63
64    public String getName() {
65        return name;
66    }
67
68    public void setName(String name) {
69        this.name = name;
70    }
71
72    public double getValue() {
73        return value;
74    }
75
76    public void setValue(double value) {
77        this.value = value;
78    }
79
80    public Date getDate() {
81        return date;
82    }
83
84    public void setDate(Date date) {
85        this.date = date;
86    }
87
88    public void setProperties(Set<DummyProperty> properties) {
89        this.properties = properties;
90    }
91
92    public Set<DummyProperty> getProperties() {
93        return properties;
94    }
95}