Update of /cvsroot/hibernate/Hibernate2/src/net/sf/hibernate
In directory sc8-pr-cvs1:/tmp/cvs-serv11660/sf/hibernate
Modified Files:
CompositeUserType.java hibernate-mapping-2.0.dtd
Log Message:
* imporvements to CompositeUserType
* cascades for <any> mappings
* fixed some bugs withy collection Filter parameters
* correct Type for avg(int)
Index: CompositeUserType.java
===================================================================
RCS file: /cvsroot/hibernate/Hibernate2/src/net/sf/hibernate/CompositeUserType.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** CompositeUserType.java 6 Apr 2003 10:16:48 -0000 1.1
--- CompositeUserType.java 8 Apr 2003 09:49:25 -0000 1.2
***************
*** 21,25 ****
* <br>
* Implementors must be immutable and must declare a public
! * default constructor.
*
* @see UserType for more simple cases
--- 21,30 ----
* <br>
* Implementors must be immutable and must declare a public
! * default constructor.<br>
! * <br>
! * Unlike <tt>UserType</tt>, cacheability does not depend upon
! * serializability. Instead, <tt>assemble()</tt> and
! * <tt>disassemble</tt> provide conversion to/from a cacheable
! * representation.
*
* @see UserType for more simple cases
***************
*** 27,30 ****
--- 32,36 ----
*/
public interface CompositeUserType {
+
/**
* Get the "property names" that may be used in a
***************
*** 66,70 ****
* @return int[] the typecodes
*/
! public int[] sqlTypes();
/**
--- 72,76 ----
* @return int[] the typecodes
*/
! //public int[] sqlTypes();
/**
***************
*** 133,137 ****
/**
* Transform the object into its cacheable representation. At the very least this
! * method should perform a deep copy. That may not be enough for some implementation,
* however; for example, associations must be cached as identifier values. (optional
* operation)
--- 139,143 ----
/**
* Transform the object into its cacheable representation. At the very least this
! * method should perform a deep copy. That may not be enough for some implementations,
* however; for example, associations must be cached as identifier values. (optional
* operation)
Index: hibernate-mapping-2.0.dtd
===================================================================
RCS file: /cvsroot/hibernate/Hibernate2/src/net/sf/hibernate/hibernate-mapping-2.0.dtd,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -d -r1.21 -r1.22
*** hibernate-mapping-2.0.dtd 6 Apr 2003 02:28:55 -0000 1.21
--- hibernate-mapping-2.0.dtd 8 Apr 2003 09:49:26 -0000 1.22
***************
*** 183,186 ****
--- 183,187 ----
<!ATTLIST any id-type CDATA #REQUIRED>
<!ATTLIST any name CDATA #REQUIRED>
+ <!ATTLIST any cascade (none|save-update|all) "none">
<!-- A component is a user-defined class, persisted along with its containing entity
|