Update of 
/cvsroot/xdoclet-plugins/xdoclet-plugins/plugin-hibernate/src/test/java/org/xdoclet/plugin/hibernate/pojo
In directory 
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30493/src/test/java/org/xdoclet/plugin/hibernate/pojo

Modified Files:
        IdbagMapping.hbm.xml IdbagMapping.java Simple.hbm.xml 
        Simple.java 
Log Message:
(XDP-98,99) Filter,filter-def are implemented correctly

Index: Simple.hbm.xml
===================================================================
RCS file: 
/cvsroot/xdoclet-plugins/xdoclet-plugins/plugin-hibernate/src/test/java/org/xdoclet/plugin/hibernate/pojo/Simple.hbm.xml,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -d -r1.19 -r1.20
*** Simple.hbm.xml      24 Aug 2005 09:42:36 -0000      1.19
--- Simple.hbm.xml      2 Sep 2005 09:14:02 -0000       1.20
***************
*** 37,40 ****
--- 37,47 ----
              <meta inherit="true" attribute="attribute">blurge</meta>
          </property>
+         <filter name="seniorSalespersons" condition="hire_dt &lt; :asOfDate"/>
      </class>
+     <filter-def name="regionlist" condition="a != b">
+         <filter-param name="regions" type="string"/>
+     </filter-def>
+     <filter-def name="effectiveDate">
+         <filter-param name="asOfDate" type="timestamp"/>
+     </filter-def>
  </hibernate-mapping>

Index: IdbagMapping.java
===================================================================
RCS file: 
/cvsroot/xdoclet-plugins/xdoclet-plugins/plugin-hibernate/src/test/java/org/xdoclet/plugin/hibernate/pojo/IdbagMapping.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** IdbagMapping.java   10 Aug 2005 15:42:05 -0000      1.3
--- IdbagMapping.java   2 Sep 2005 09:14:02 -0000       1.4
***************
*** 26,29 ****
--- 26,30 ----
       * @hibernate.many-to-many 
class="org.xdoclet.plugin.hibernate.pojo.ItemArray"
       * column="item" outer-join="true"
+      * @hibernate.filter name="region" condition="REG = :region"
       */
      public Collection getIdBag() {

Index: Simple.java
===================================================================
RCS file: 
/cvsroot/xdoclet-plugins/xdoclet-plugins/plugin-hibernate/src/test/java/org/xdoclet/plugin/hibernate/pojo/Simple.java,v
retrieving revision 1.28
retrieving revision 1.29
diff -C2 -d -r1.28 -r1.29
*** Simple.java 24 Aug 2005 09:42:36 -0000      1.28
--- Simple.java 2 Sep 2005 09:14:02 -0000       1.29
***************
*** 18,25 ****
   * @hibernate.meta attribute="attribute" inherit="true" value="blurge"
   *
!  [EMAIL PROTECTED] name="TypeName1" class="EnumUserType"
!  [EMAIL PROTECTED] typedef-name="TypeName1" name="enumClassName" value="a.B"
!  [EMAIL PROTECTED] name="TypeName2" class="EnumUserType"
!  [EMAIL PROTECTED] typedef-name="TypeName2" name="enumClassName" value="a.C"  
*/
  public class Simple {
      private Object _fullBlown;
--- 18,33 ----
   * @hibernate.meta attribute="attribute" inherit="true" value="blurge"
   *
!  * @hibernate.typedef name="TypeName1" class="EnumUserType"
!  * @hibernate.typedef-param typedef-name="TypeName1" name="enumClassName" 
value="a.B"
!  * @hibernate.typedef name="TypeName2" class="EnumUserType"
!  * @hibernate.typedef-param typedef-name="TypeName2" name="enumClassName" 
value="a.C"
!  *
!  * @hibernate.filter-def name="regionlist" condition="a != b"
!  * @hibernate.filter-param filterdef-name="regionlist" name="regions" 
type="string"
!  * @hibernate.filter-def name="effectiveDate"
!  * @hibernate.filter-param filterdef-name="effectiveDate" name="asOfDate" 
type="timestamp"
!  *
!  * @hibernate.filter name="seniorSalespersons" condition="hire_dt < :asOfDate"
!  */
  public class Simple {
      private Object _fullBlown;

Index: IdbagMapping.hbm.xml
===================================================================
RCS file: 
/cvsroot/xdoclet-plugins/xdoclet-plugins/plugin-hibernate/src/test/java/org/xdoclet/plugin/hibernate/pojo/IdbagMapping.hbm.xml,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** IdbagMapping.hbm.xml        2 Jun 2005 14:09:18 -0000       1.2
--- IdbagMapping.hbm.xml        2 Sep 2005 09:14:02 -0000       1.3
***************
*** 1,4 ****
  <?xml version="1.0" encoding="ISO-8859-1"?>
! <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 
2.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd";>
  
  <hibernate-mapping>
--- 1,4 ----
  <?xml version="1.0" encoding="ISO-8859-1"?>
! <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 
2.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd";>
  
  <hibernate-mapping>
***************
*** 12,15 ****
--- 12,16 ----
              <key column="key_column"/>
              <many-to-many class="org.xdoclet.plugin.hibernate.pojo.ItemArray" 
column="item" outer-join="true"/>
+             <filter name="region" condition="REG = :region"/>
          </idbag>
      </class>



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
xdoclet-plugins-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-commits

Reply via email to