diff --git a/transforms/adl2controllerclasses.xslt b/transforms/adl2controllerclasses.xslt index a4e7f35..dc2c2f0 100755 --- a/transforms/adl2controllerclasses.xslt +++ b/transforms/adl2controllerclasses.xslt @@ -9,8 +9,8 @@ Transform ADL into (partial) controller classes $Author: sb $ - $Revision: 1.9 $ - $Date: 2008-06-04 16:17:39 $ + $Revision: 1.10 $ + $Date: 2008-06-06 08:46:27 $ --> - - + + + + + if ( ! String.IsNullOrEmpty( Params[ ""])) { - search.Add( Expression.Eq( "", Int32.Parse( Params[""]))); + search + + + ; } - - - if ( ! String.IsNullOrEmpty( Params[ ""])) { - search.Add( Expression.Eq( "", Int32.Parse( Params[""]))); - } - - - if ( ! String.IsNullOrEmpty( Params[ ""])) { - search.Add( Expression.Eq( "", Int32.Parse( Params[""]))); - } - - - - if ( ! String.IsNullOrEmpty( Params[ ""])) { - search.Add( Expression.Like( "", "%"+Params[""]+"%")); - } - - - + + search.AddOrder(); @@ -706,40 +692,6 @@ namespace { - .Add( Expression.Eq( "", - - Int32.Parse( Form[ ""]) - - - Form[ ""] - - - - - - - - - - hibernator.CreateCriteria( typeof( )) - .Add(Expression.Eq( "", - - Int32.Parse( Form[ ""]) - - - Form[ ""] - - - Form[ ""] - - )) - .UniqueResult<>() - - - Form[ ""] - - )) .UniqueResult<>(); } @@ -877,17 +829,18 @@ namespace { [AccessibleThrough(Verb.Get)] public void ( - + + string - + - + @@ -901,7 +854,10 @@ namespace { hibernator.CreateCriteria(typeof()) - .Add( Expression.Eq( "", )) + + + + .UniqueResult<>() @@ -921,10 +877,10 @@ namespace { [AccessibleThrough(Verb.Get)] public void ( - + + string , ) { @@ -934,7 +890,10 @@ namespace { record = hibernator.CreateCriteria(typeof()) - .Add(Expression.Eq("", )) + + + + .UniqueResult<>(); @@ -968,6 +927,11 @@ namespace { /* */ + + + + + @@ -989,22 +953,10 @@ namespace { matchCriteria = hibernator.CreateCriteria(typeof()); - matchCriteria.Add(Expression.Eq("", - Form[""] - Int32.Parse( Form[""]) - - - - - - - - - ADL: ERROR: don't yet know how to do distinctness checks for properties - with base type - - - )); + matchCriteria + + + ; if ( record != null) { /* i.e. we do have values for each of our key fields... */ @@ -1014,17 +966,11 @@ namespace { - matchCriteria.Add(Expression.Not(Expression.Eq("", - - - - - - - - Int32.Parse( Form[""]) - Form[""] - ))); + matchCriteria.Add(Expression.Not( + + + Form[""] + )); } @@ -1111,10 +1057,6 @@ namespace { - - - - @@ -1169,6 +1111,100 @@ namespace { + + + + + + + + + + .Add( + + + ) + + + + + + + + + + + + .Add( + + + ) + + + + + + + + + + + + + + Expression.Eq("", + + + + + Int32.Parse( ) + + + Decimal.Parse( ) + + + Date.Parse( ) + + + + + + + + + + + ADL: Error: keys of type cannot yet be used + in links + + + ) + + + + + + + + + + + + + + Expression.Like( "", "%"+Params[""]+"%") + + + + + + + + + + @@ -1198,24 +1234,22 @@ namespace { - + + + + + + ADL: ERROR: property passed to fetch-property-instance whose type is not 'entity' hibernator.CreateCriteria(typeof()) - .Add(Expression.Eq("", - - - - - - - - Int32.Parse( Form[""]) - Form[""] - )) + + + Form[""] + .UniqueResult<>() diff --git a/transforms/adl2views.xslt b/transforms/adl2views.xslt index e0e7d1e..ec8bd6d 100755 --- a/transforms/adl2views.xslt +++ b/transforms/adl2views.xslt @@ -13,8 +13,8 @@ Transform ADL into velocity view templates $Author: sb $ - $Revision: 1.6 $ - $Date: 2008-06-04 16:17:39 $ + $Revision: 1.7 $ + $Date: 2008-06-06 08:46:27 $ --> @@ -124,7 +124,7 @@ Auto generated Velocity maybe-delete form for , generated from ADL. - Generated using adl2views.xslt + Generated using adl2views.xslt @@ -162,7 +162,7 @@ Auto generated Velocity maybe-delete form for , generated from ADL. - Generated using adl2views.xslt + Generated using adl2views.xslt @@ -243,7 +243,7 @@ Auto generated Velocity form for , generated from ADL. - Generated using adl2views.xslt + Generated using adl2views.xslt #capturefor( title) #if ( $instance) @@ -364,7 +364,7 @@ Auto generated Velocity form for , generated from ADL. - Generated using adl2views.xsl + Generated using adl2views.xsl