[hibernate-commits] Hibernate SVN: r11452 - trunk/HibernateExt/shards/src/test/org/hibernate/shards/model.

hibernate-commits at lists.jboss.org hibernate-commits at lists.jboss.org
Wed May 2 02:09:56 EDT 2007


Author: max.ross
Date: 2007-05-02 02:09:56 -0400 (Wed, 02 May 2007)
New Revision: 11452

Added:
   trunk/HibernateExt/shards/src/test/org/hibernate/shards/model/IdIsBaseType.java
Log:
add helper class for test that verifies we can support objects with ids that are base types

Added: trunk/HibernateExt/shards/src/test/org/hibernate/shards/model/IdIsBaseType.java
===================================================================
--- trunk/HibernateExt/shards/src/test/org/hibernate/shards/model/IdIsBaseType.java	                        (rev 0)
+++ trunk/HibernateExt/shards/src/test/org/hibernate/shards/model/IdIsBaseType.java	2007-05-02 06:09:56 UTC (rev 11452)
@@ -0,0 +1,45 @@
+/**
+ * Copyright (C) 2007 Google Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
+ */
+package org.hibernate.shards.model;
+
+/**
+ * Test class used for tests that illustrate we can handle objects with
+ * ids that are base types.
+ *
+ * @author maxr at google.com (Max Ross)
+ */
+public class IdIsBaseType {
+  private long idIsBaseTypeId;
+  private String value;
+
+  public long getIdIsBaseTypeId() {
+    return idIsBaseTypeId;
+  }
+
+  public void setIdIsBaseTypeId(long hasLongId) {
+    this.idIsBaseTypeId = hasLongId;
+  }
+
+  public String getValue() {
+    return value;
+  }
+
+  public void setValue(String value) {
+    this.value = value;
+  }
+}




More information about the hibernate-commits mailing list