gdamour 2004/12/02 18:14:00
Modified: modules/openejb-builder/src/test/org/openejb/deployment
CMPEntityBuilderTest.java
Log:
GERONIMO-506: CMP - Dependent Value Classes are not supported
GERONIMO-195: BLOB support for CMP entity bean
Dependent Value Classes, and more generally any classes, can now be stored
by CMP entity beans.
It is even possible to define explicitely the SQL type of the column in which
a CMP field is to be stored and how to store it.
This is achieved via two new optional sub-elements of cmp-field-mapping:
o sql-type: this is an SQL type identifier. It must be a field name of the
java.sql.Types class; and
o type-converter: this is the full class name of a TypeConverter. A
TypeConverter is used to perform Java to SQL types conversions and
SQL to Java types conversions.
Combined together, these features give the flexibility to control explicitely
the storage of CMP fields.
For instance, it is possible to store a byte[] directly into a BLOB by
implementing the adequate TypeConverter.
By default, in other words where none of the above elements are specified,
CMP fields, whose types are not explicitely defined by TranQL, are serialized
and stored in a BLOB.
Revision Changes Path
1.3 +2 -2
openejb/modules/openejb-builder/src/test/org/openejb/deployment/CMPEntityBuilderTest.java
Index: CMPEntityBuilderTest.java
===================================================================
RCS file:
/home/projects/openejb/scm/openejb/modules/openejb-builder/src/test/org/openejb/deployment/CMPEntityBuilderTest.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- CMPEntityBuilderTest.java 10 Nov 2004 20:25:10 -0000 1.2
+++ CMPEntityBuilderTest.java 2 Dec 2004 23:14:00 -0000 1.3
@@ -283,7 +283,7 @@
}
}
}
-
+
List pkEnds = leftEntity.getAssociationEnds();
List fkEnds = rightEntity.getAssociationEnds();
assertEquals(1, pkEnds.size());