Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2011-01-30 09:55:40 +0000
committerEike Stepper2011-01-30 09:55:40 +0000
commit511c8d2c25e09939d22178f0952c19321e35a211 (patch)
tree98df20c4925771c5dba899e30eab807267cfb750 /plugins/org.eclipse.emf.cdo.examples.hibernate.client
parent941c35ba97dd412cb433780fbefa5519b3c8ecb8 (diff)
downloadcdo-511c8d2c25e09939d22178f0952c19321e35a211.tar.gz
cdo-511c8d2c25e09939d22178f0952c19321e35a211.tar.xz
cdo-511c8d2c25e09939d22178f0952c19321e35a211.zip
cdoID --> id
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.examples.hibernate.client')
-rw-r--r--plugins/org.eclipse.emf.cdo.examples.hibernate.client/src/org/eclipse/emf/cdo/examples/hibernate/client/HibernateQueryTest.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/plugins/org.eclipse.emf.cdo.examples.hibernate.client/src/org/eclipse/emf/cdo/examples/hibernate/client/HibernateQueryTest.java b/plugins/org.eclipse.emf.cdo.examples.hibernate.client/src/org/eclipse/emf/cdo/examples/hibernate/client/HibernateQueryTest.java
index 1e5fb59139..7ec2cd8b35 100644
--- a/plugins/org.eclipse.emf.cdo.examples.hibernate.client/src/org/eclipse/emf/cdo/examples/hibernate/client/HibernateQueryTest.java
+++ b/plugins/org.eclipse.emf.cdo.examples.hibernate.client/src/org/eclipse/emf/cdo/examples/hibernate/client/HibernateQueryTest.java
@@ -263,8 +263,8 @@ public class HibernateQueryTest extends BaseTest
final CDOQuery orderQuery = transaction.createQuery("hql", //$NON-NLS-1$
"select so from SalesOrder so where so.customer.id=:customerId"); //$NON-NLS-1$
final CDOObject cdoObject = (CDOObject)customer;
- final CDOID cdoID = cdoObject.cdoID();
- orderQuery.setParameter("customerId", getIdValue(cdoID)); //$NON-NLS-1$
+ final CDOID id = cdoObject.cdoID();
+ orderQuery.setParameter("customerId", getIdValue(id)); //$NON-NLS-1$
final List<SalesOrder> sos = orderQuery.getResult(SalesOrder.class);
assertEquals(NUM_OF_SALES_ORDERS, sos.size());
for (SalesOrder so : sos)
@@ -437,19 +437,19 @@ public class HibernateQueryTest extends BaseTest
return product;
}
- public Serializable getIdValue(CDOID cdoID)
+ public Serializable getIdValue(CDOID id)
{
- if (cdoID instanceof AbstractCDOIDString)
+ if (id instanceof AbstractCDOIDString)
{
- return ((AbstractCDOIDString)cdoID).getStringValue();
+ return ((AbstractCDOIDString)id).getStringValue();
}
- if (cdoID instanceof AbstractCDOIDLong)
+ if (id instanceof AbstractCDOIDLong)
{
- return ((AbstractCDOIDLong)cdoID).getLongValue();
+ return ((AbstractCDOIDLong)id).getLongValue();
}
- throw new IllegalArgumentException("This CDOID type " + cdoID + " is not supported by this store."); //$NON-NLS-1$//$NON-NLS-2$
+ throw new IllegalArgumentException("This CDOID type " + id + " is not supported by this store."); //$NON-NLS-1$//$NON-NLS-2$
}
}

Back to the top