From: <one...@us...> - 2003-04-06 02:29:30
|
Update of /cvsroot/hibernate/Hibernate2/src/net/sf/hibernate In directory sc8-pr-cvs1:/tmp/cvs-serv13138 Modified Files: Hibernate.java UserType.java hibernate-mapping-2.0.dtd Log Message: added CompositeUserType refactored handling of component path expressions PersistentIdentifierGenerators now aware of schema Index: Hibernate.java =================================================================== RCS file: /cvsroot/hibernate/Hibernate2/src/net/sf/hibernate/Hibernate.java,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** Hibernate.java 29 Mar 2003 04:08:46 -0000 1.9 --- Hibernate.java 6 Apr 2003 02:28:55 -0000 1.10 *************** *** 24,27 **** --- 24,28 ---- import net.sf.hibernate.type.ClassType; import net.sf.hibernate.type.ClobType; + import net.sf.hibernate.type.CompositeCustomType; import net.sf.hibernate.type.CurrencyType; import net.sf.hibernate.type.CustomType; *************** *** 201,205 **** */ public static Type custom(Class userTypeClass) throws HibernateException { ! return new CustomType(userTypeClass); } --- 202,211 ---- */ public static Type custom(Class userTypeClass) throws HibernateException { ! if ( CompositeUserType.class.isAssignableFrom(userTypeClass) ) { ! return new CompositeCustomType(userTypeClass); ! } ! else { ! return new CustomType(userTypeClass); ! } } Index: UserType.java =================================================================== RCS file: /cvsroot/hibernate/Hibernate2/src/net/sf/hibernate/UserType.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** UserType.java 9 Feb 2003 06:28:14 -0000 1.5 --- UserType.java 6 Apr 2003 02:28:55 -0000 1.6 *************** *** 7,12 **** /** ! * This interface should be implemented by user-defined types. ! * The interface <ul> * <li>abstracts user code from future changes to the <tt>Type</tt> * interface,</li> --- 7,17 ---- /** ! * This interface should be implemented by user-defined "types". ! * A "type" class is <em>not</em> the actual property type - it ! * is a class that knows how to serialize instances of another ! * class to and from JDBC.<br> ! * <br> ! * This interface ! * <ul> * <li>abstracts user code from future changes to the <tt>Type</tt> * interface,</li> Index: hibernate-mapping-2.0.dtd =================================================================== RCS file: /cvsroot/hibernate/Hibernate2/src/net/sf/hibernate/hibernate-mapping-2.0.dtd,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** hibernate-mapping-2.0.dtd 5 Apr 2003 09:14:47 -0000 1.20 --- hibernate-mapping-2.0.dtd 6 Apr 2003 02:28:55 -0000 1.21 *************** *** 199,203 **** <!ATTLIST component insert (true|false) "true"> - <!ELEMENT dynabean ( (property|many-to-one|one-to-one|component|dynabean|any|map|set|list|bag|array|primitive-array)* --- 199,202 ---- *************** *** 205,208 **** --- 204,209 ---- <!ATTLIST dynabean dynaclass CDATA #REQUIRED> <!ATTLIST dynabean name CDATA #REQUIRED> + <!ATTLIST dynabean update (true|false) "true"> + <!ATTLIST dynabean insert (true|false) "true"> <!-- The parent element maps a property of the component class as a pointer back to |