gdamour 2004/10/15 10:56:47
Modified: modules/core/src/test/org/openejb/entity/cmp
CMPSystemMethodIndicesTest.java
Log:
Adds support for automatic primary key generation. This mechanism can be used:
- either to define the identity of EJB defining an unknown primary key; or
- to define automatically the primary key of an EJB.
Updates the various CMPFinder implementations in order to load in the InTxCache the
found entities.
Revision Changes Path
1.3 +2 -2
openejb/modules/core/src/test/org/openejb/entity/cmp/CMPSystemMethodIndicesTest.java
Index: CMPSystemMethodIndicesTest.java
===================================================================
RCS file:
/home/projects/openejb/scm/openejb/modules/core/src/test/org/openejb/entity/cmp/CMPSystemMethodIndicesTest.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- CMPSystemMethodIndicesTest.java 14 Oct 2004 07:07:16 -0000 1.2
+++ CMPSystemMethodIndicesTest.java 15 Oct 2004 14:56:47 -0000 1.3
@@ -68,7 +68,7 @@
public void testSystemMethodIndices() throws Exception {
CMPContainerBuilder builder = new CMPContainerBuilder();
builder.setClassLoader(MockCMPEJB.class.getClassLoader());
- Map vopMap = builder.buildVopMap(MockCMPEJB.class, null, null, null, null,
null, null, new LinkedHashMap());
+ Map vopMap = builder.buildVopMap(MockCMPEJB.class, null, null, null, null,
null, null, null, new LinkedHashMap());
InterfaceMethodSignature[] signatures = (InterfaceMethodSignature[])
vopMap.keySet().toArray(new InterfaceMethodSignature[vopMap.size()]);
SystemMethodIndices systemMethodIndices =
SystemMethodIndices.createSystemMethodIndices(signatures, "setEntityContext", new
String(EntityContext.class.getName()), "unsetEntityContext");
assertFalse(systemMethodIndices.getEjbActivateInvocation(null).getMethodIndex() == -1);