/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. package com.hazelcast.hibernate.entity;
  17. import java.util.Date;
  18. import java.util.Set;
  19. public class DummyEntity {
  20. private long id;
  21. private int version;
  22. private String name;
  23. private double value;
  24. private Date date;
  25. private Set<DummyProperty> properties;
  26. public DummyEntity() {
  27. super();
  28. }
  29. public DummyEntity(long id, String name, double value, Date date) {
  30. super();
  31. this.id = id;
  32. this.name = name;
  33. this.value = value;
  34. this.date = date;
  35. }
  36. public long getId() {
  37. return id;
  38. }
  39. public void setId(long id) {
  40. this.id = id;
  41. }
  42. public int getVersion() {
  43. return version;
  44. }
  45. public void setVersion(int version) {
  46. this.version = version;
  47. }
  48. public String getName() {
  49. return name;
  50. }
  51. public void setName(String name) {
  52. this.name = name;
  53. }
  54. public double getValue() {
  55. return value;
  56. }
  57. public void setValue(double value) {
  58. this.value = value;
  59. }
  60. public Date getDate() {
  61. return date;
  62. }
  63. public void setDate(Date date) {
  64. this.date = date;
  65. }
  66. public void setProperties(Set<DummyProperty> properties) {
  67. this.properties = properties;
  68. }
  69. public Set<DummyProperty> getProperties() {
  70. return properties;
  71. }
  72. }