gdamour     2004/12/02 18:14:00

  Modified:    modules/openejb-builder/src/schema openejb-jar.xsd
  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.2       +2 -0      
openejb/modules/openejb-builder/src/schema/openejb-jar.xsd
  
  Index: openejb-jar.xsd
  ===================================================================
  RCS file: 
/home/projects/openejb/scm/openejb/modules/openejb-builder/src/schema/openejb-jar.xsd,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- openejb-jar.xsd   10 Nov 2004 01:35:10 -0000      1.1
  +++ openejb-jar.xsd   2 Dec 2004 23:14:00 -0000       1.2
  @@ -141,6 +141,8 @@
                               <xs:element name="cmp-field-name" 
type="xs:string"/>
                               <xs:element name="cmp-field-class" 
type="xs:string" minOccurs="0"/>
                               <xs:element name="table-column" 
type="xs:string"/>
  +                            <xs:element name="sql-type" type="xs:string" 
minOccurs="0"/>
  +                            <xs:element name="type-converter" 
type="xs:string" minOccurs="0"/>
                           </xs:sequence>
                       </xs:complexType>
                   </xs:element>
  
  
  

Reply via email to