[hibernate-commits] Hibernate SVN: r20290 - core/branches/Branch_3_5/cache-infinispan/src/test/java/org/hibernate/test/cache/infinispan/functional.

hibernate-commits at lists.jboss.org hibernate-commits at lists.jboss.org
Tue Aug 31 12:05:15 EDT 2010


Author: galder.zamarreno at jboss.com
Date: 2010-08-31 12:05:14 -0400 (Tue, 31 Aug 2010)
New Revision: 20290

Modified:
   core/branches/Branch_3_5/cache-infinispan/src/test/java/org/hibernate/test/cache/infinispan/functional/VersionedItem.java
Log:
[HHH-5519] (VersionedItem should not extend Item, otherwise query cache results are confusing) Fixed.

Modified: core/branches/Branch_3_5/cache-infinispan/src/test/java/org/hibernate/test/cache/infinispan/functional/VersionedItem.java
===================================================================
--- core/branches/Branch_3_5/cache-infinispan/src/test/java/org/hibernate/test/cache/infinispan/functional/VersionedItem.java	2010-08-31 15:15:25 UTC (rev 20289)
+++ core/branches/Branch_3_5/cache-infinispan/src/test/java/org/hibernate/test/cache/infinispan/functional/VersionedItem.java	2010-08-31 16:05:14 UTC (rev 20290)
@@ -1,9 +1,8 @@
-/*
- * Hibernate, Relational Persistence for Idiomatic Java
+/* * Hibernate, Relational Persistence for Idiomatic Java
  *
  * Copyright (c) 2007, Red Hat, Inc. and/or it's affiliates or third-party contributors as
  * indicated by the @author tags or express copyright attribution
- * statements applied by the authors.  All third-party contributions are
+ * statements applied by the authors.  All third-party contributions are
  * distributed under license by Red Hat, Inc. and/or it's affiliates.
  *
  * This copyrighted material is made available to anyone wishing to use, modify,
@@ -26,14 +25,42 @@
 /**
  * @author Steve Ebersole
  */
-public class VersionedItem extends Item {
-    private Long version;
+public class VersionedItem {
+   private Long id;
+   private Long version;
+   private String name;
+   private String description;
 
-    public Long getVersion() {
-        return version;
-    }
+   public Long getId() {
+      return id;
+   }
 
-    public void setVersion(Long version) {
-        this.version = version;
-    }
+   public void setId(Long id) {
+      this.id = id;
+   }
+
+   public Long getVersion() {
+      return version;
+   }
+
+   public void setVersion(Long version) {
+      this.version = version;
+   }
+
+   public String getDescription() {
+      return description;
+   }
+
+   public void setDescription(String description) {
+      this.description = description;
+   }
+
+   public String getName() {
+      return name;
+   }
+
+   public void setName(String name) {
+      this.name = name;
+   }
+
 }



More information about the hibernate-commits mailing list