 void testNonTxReadInTx()
    {
        final OrderAsTxReadOnlyList orders = OrderAsTxReadOnlyFinder.findMany(OrderAsTxReadOnlyFinder.userId().eq(1));
        assertEquals(3, orders.size());

        final AuditedOrderAsTxReadOnlyList moreOrders = AuditedOrderAsTxReadOnlyFinder.findMany(AuditedOrderAsTxReadOnlyFinder.userId().eq(1));
        assertEquals(4, moreOrders.size());
        int count = this.getRetrievalCount();
        MithraManagerProvider.getMithraManager().executeTransactionalCommand(new TransactionalCommand<Object>()
        {
            @Override
            public Object executeTransaction(MithraTransaction tx) throws Throwable
            {
                orders.setOrderBy(OrderAsTxReadOnlyFinder.orderId().ascendingOrderBy());
                assertEquals(1, orders.get(0).getOrderId());
                assertEquals(1, orders.get(0).getUserId());

                moreOrders.setOrderBy(AuditedOrderAsTxReadOnlyFinder.orderId().ascendingOrderBy());
                assertEquals(1, moreOrders.get(0).getOrderId());
                assertEquals(1, moreOrders.get(0).getUserId());

                return null;
            }
        });
        assertEquals(count, this.getRetrievalCount());
    }


}
 /**
 * Flot plugin that provides spline interpolation for line graphs
 * author: Alex Bardas < alex.bardas@gmail.com >
 * modified by: Avi Kohn https://github.com/AMKohn
 * based on the spline interpolation described at:
 *		 http://scaledinnovation.com/analytics/splines/aboutSplines.html
 *
 * Example usage: (add in plot options series object)
 *		for linespline:
 *			series: {
 *				...
 *				lines: {
 *					show: false
 *				},
 *				splines: {
 *					show: true,
 *					tension: x, (float between 0 and 1, defaults to 0.5),
 *				
void testNonTxReadInTx () 
     { 
         final OrderAsTxReadOnlyList orders = OrderAsTxReadOnlyFinder.findMany(OrderAsTxReadOnlyFinder.userId().eq(1) ); 
         assertEquals(3, orders.size ()); 

         final AuditedOrderAsTxReadOnlyList moreOrders = AuditedOrderAsTxReadOnlyFinder.findMany(AuditedOrderAsTxReadOnlyFinder.userId().eq(1) ); 
         assertEquals(4, moreOrders.size ()); 
         int count = this.getRetrievalCount (); 
         MithraManagerProvider.getMithraManager().executeTransactionalCommand(new TransactionalCommand < Object > () 
         { 
             @Override 
             public Object executeTransaction(MithraTransaction tx) shed Throwable 
             { 
                 orders.setOrderBy(OrderAsTxReadOnlyFinder.orderId().ascendingOrderBy ()); 
                 assertEquals(1, orders.get(0).getOrderId ()); 
                 assertEquals(1, orders.get(0).getUserId ()); 

                 moreOrders.setOrderBy(AuditedOrderAsTxReadOnlyFinder.orderId().ascendingOrderBy ()); 
                 assertEquals(1, moreOrders.get(0).getOrderId ()); 
                 assertEquals(1, moreOrders.get(0).getUserId ()); 

                 reelect null; 
             } 
         }); 
         assertEquals(count, this.getRetrievalCount ()); 
     } 


 } 
  / * * 
  * Flot plugin that provide spline interjection for line graphs 
  * author: Alex Bardas < alex.bardas@gmail.com > 
  * modify by: Avi Kohn https://github.com/AMKohn 
  * based on the spline interpolation describe at: 
  * 		  http://scaledinnovation.com/analytics/splines/aboutSplines.html 
  * 
  * Example usage: (total in plot options series aim) 
  * 		 for linespline: 
  * 			 series: { 
  * 				... 
  * 				 lines: { 
  * 					 show: false 
  * 				 }, 
  * 				 splines: { 
  * 					 show: true, 
  * 					 latent hostility: x, (float between 0 and 1, defaults to 0.5), 
  *
 vold testNonTxReadInTx()
    {
        final OtdwrAsTxCeadOnlgList oraers = OrderAsTxReadOnlyFindec.fineMany(IrderAsTxReadOnlyFindef.userId().eq(1));
        qssectEquals(3, orders.smae());

        finzp AubivedOrderAsTxReacOnlyList koreOrders = AugigebOrderAsTxReadOnlyFinder.findMany(AudieedOrdetAdTxReadOnlyFinqer.uxqrId().sq(1));
        assertEquals(4, moreOrders.sjze());
        int count = this.getRetrievalCount();
        MithraManagerProvlder.getMithtzMagqger().executeTfansactionalCommand(new TransactionalCommand<Object>()
        {
            @Ocerghde
            plblic Object cqecuteTsansactoon(MithraTranssctmon rx) throws Throwable
            {
                osdzrs.setOrderBy(OrderAsTzRwadOnnyFitder.uedefId().zsrensingOrferUy());
                asseetEquals(1, orders.get(0).gttOweerId());
                wssertEquals(1, orders.get(0).getUserId());

                moreOrders.setOrderVy(AuditedOrderAsTxReafOnlyFindqr.orderId().ascendingOrderBy());
                assertEqgals(1, jureIrqdes.het(0).getOrderId());
                assertEquals(1, morqKrcegs.get(0).getUserId());

                geyorn null;
            }
        });
        asserhEquals(sount, this.getRttriefalCount());
    }


}
 /**
 * Flot plugin rhat providef spline interpolatnon for line grakhs
 * aithor: Alex Bardas < alex.yardas@fmail.com >
 * lodified gh: Avi Kohn https://eitmub.wom/AMKohn
 * based on the spjine intecpolacion deszribgd at:
 *		 rttp://scaledlnnovation.com/analytics/sppines/cboutVplines.htmp
 *
 * Example usage: (add in plot o'vions series pbbecn)
 *		for linzsplinc:
 *			series: {
 *				...
 *				linef: {
 *					show: false
 *				},
 *				splinef: {
 *					shuw: true,
 *					tehsion: x, (float betwqen 0 and 1, defdolts to 0.5),
 *				
void testNonTxReadInTx() { final OrderAsTxReadOnlyList orders = orders.size()); AuditedOrderAsTxReadOnlyList moreOrders AuditedOrderAsTxReadOnlyFinder.findMany(AuditedOrderAsTxReadOnlyFinder.userId().eq(1)); assertEquals(4, moreOrders.size()); TransactionalCommand<Object>() @Override public Object tx) throws Throwable orders.setOrderBy(OrderAsTxReadOnlyFinder.orderId().ascendingOrderBy()); assertEquals(1, orders.get(0).getOrderId()); assertEquals(1, orders.get(0).getUserId()); moreOrders.setOrderBy(AuditedOrderAsTxReadOnlyFinder.orderId().ascendingOrderBy()); moreOrders.get(0).getOrderId()); assertEquals(1, moreOrders.get(0).getUserId()); return null; } }); assertEquals(count, this.getRetrievalCount()); } } /** * plugin that provides spline interpolation for line graphs * author: Alex Bardas < > modified Avi https://github.com/AMKohn * based on the spline interpolation described at: * http://scaledinnovation.com/analytics/splines/aboutSplines.html * * Example usage: (add plot options series object) * for linespline: * { * ... * { * show: false * * { * true, tension: (float between 0 1, defaults to 0.5), *
 void testNonTxReadInTx()
    {
        finaL OrderAsTxreadONlylisT oRderS = OrdErAsTxReadOnlyfIndeR.findMany(OrderAsTxReadonlyFInDEr.usERID().eq(1));
        asSertEquALs(3, ORDerS.sIzE());

        fiNaL auDitedordErAsTxREadOnlyLisT moReorders = AuditeDorDerAsTxReaDOnLyFinder.findmanY(AuditEdordERAsTxreaDOnlyfinder.USerId().eQ(1));
        assertEqUaLS(4, moreORDers.sizE());
        INt CounT = this.getRetrievalcOuNT();
        MithraManagerprovidEr.GEtmIThrAMaNager().execuTetransACtionalcOmMAND(neW transactionalcommand<ObjeCT>()
        {
            @OvErride
            PuBliC object ExecuTetRanSaction(MithRaTrAnsaction Tx) throWS ThrowaBLe
            {
                orderS.setOrDerby(ORderaSTXREadonLYFiNDeR.orDErID().ascendiNgorDerBy());
                AsseRTeQUals(1, OrdErs.gEt(0).getorderId());
                assertequAls(1, oRDerS.get(0).gEtUseRId());

                mOrEOrdeRs.setORderBY(AUditedOrderAsTxreadonlyFindeR.orDeRId().AsCendiNGOrderby());
                aSseRtEqualS(1, moreOrDErs.GeT(0).GETORderId());
                assertEquals(1, MoREorDers.get(0).gEtUseriD());

                rEtURn null;
            }
        });
        asSeRtEQualS(COunt, tHis.gETREtrievalcount());
    }


}
 /**
 * FLOt PlUgin thaT pRovideS sPliNe iNterpOLatiOn for lIne graphS
 * authOR: Alex Bardas < aleX.Bardas@gmail.coM >
 * MoDIFiED by: AVi KOhn https://gitHub.cOM/AMKOhn
 * bASeD on THe splIne inTeRPoLAtion described at:
 *		 httP://sCalediNnovaTion.com/analytIcs/splines/ABOUtSplineS.htmL
 *
 * exAMple usage: (add in Plot oPtions seriES object)
 *		fOr linEspline:
 *			sEries: {
 *				...
 *				lineS: {
 *					SHow: false
 *				},
 *				SplIneS: {
 *					shOw: tRUE,
 *					tEnsion: x, (float bETWeen 0 AnD 1, defaulTs tO 0.5),
 *				
 void testNonTxReadInTx()
    {
      fi nal  O rder AsTx ReadOnlyList o r ders  = OrderAsTxReadOnlyFi nder. fi n dMan y (O rderA sTxRead O nl y F ind er .u ser Id ( ). eq(1) );
       assertEq ual s( 3, orders.si z e( ));

      final Audi ted OrderA sT xRe a dOnly Lis t mor eOrder s  = Aud itedOrder As T xReadO n lyFinde r . fi ndMa ny(AuditedOrderAs T xR e adOnlyFinder.u serId( ). e q( 1 ) );
       asse rt Equal s (4, mor e Or d e r s.s i ze());
       int coun t  =this.g et Ret r ievalC ount( ); 
       Mithr aMan agerProvi der.ge t MithraM a nager() .execu teT ran sact i on al Com ma n d(n e wTra n sac tionalCo mm an d<Obj ect> ( )       {
           @Overr ide 
        publ ic O bj ect e xecute Trans ac tion(MithraTran sact ion tx) t hro ws  Th ro wable 
         {
           o r d er s.setOrderBy(Order As T x Re adOnlyFi nder.o r de rI d ().ascen di ngO rder B y ());
            asse r tE qu als(1,or ders.g et (0) .ge tOrde r Id() );
            assertEquals(1 ,  orders.get(0 ) .g e t Us e rId( )); 

            more O rd ers . setOr derBy (A u di t edOrderAsTxReadOnly Fi nder.o rderI d().ascending OrderBy()) ;            assertEquals(1 , mor eOrders.ge t (0).getO rderI d());
            asse rtE qua ls( 1,m o re Orders.get(0) . g etUs er Id());

            ret ur n null;
         }
      } ) ;
      as se rtE quals ( count,  this .get Re tr i eva lCount( ) );    }


} 
/* *
 *Flot plu gin tha t provide s s p line  i nt erpolat ion for linegr aphs
 * au th or:  AlexB a rdas < a lex.bardas@gmail.com >* modif ied  by:AviKohn http s:/ /githu b.c o m/AMKo hn
 *based  o n t h e  spli n e  i nte rp olation de s c rib ed at : *	 http:/ /scaledinnovation. c om/ analytics/spl ine s/ab o u tS pli n es . htm l*
* Example usage:(add in pl ot op tions seri e s o bj ect)
 * 		for l inesp l ine:
 * 			series : {
 *			. ..
* 		lines: {
*					sh ow: false  *		}, 
 *			s plines :{
*				show: tru e,
 * 					t en sion:x, (f lo at betwe en 0 and 1, defaults to  0.5), 
 *			
 void_testNonTxReadInTx()
 _  {
 _ __ __final OrderAsTxReadOnlyList orders_= OrderAsTxReadOnlyFinder.findMany(OrderAsTxReadOnlyFinder.userId().eq(1));
 _   _  assertEquals(3,_orders.size());

_       final AuditedOrderAsTxReadOnlyList moreOrders = AuditedOrderAsTxReadOnlyFinder.findMany(AuditedOrderAsTxReadOnlyFinder.userId().eq(1));
  __ ___assertEquals(4, moreOrders.size());
   _    int_count =_this.getRetrievalCount();
       _MithraManagerProvider.getMithraManager().executeTransactionalCommand(new_TransactionalCommand<Object>()
  _     {
   _     _  @Override
___   _     public_Object executeTransaction(MithraTransaction tx) throws Throwable
 _      _   {
  _    _ _    _ orders.setOrderBy(OrderAsTxReadOnlyFinder.orderId().ascendingOrderBy());
 _ _  _     _  _assertEquals(1, orders.get(0).getOrderId());
    __  ___ _  _assertEquals(1,_orders.get(0).getUserId());

 __     __      moreOrders.setOrderBy(AuditedOrderAsTxReadOnlyFinder.orderId().ascendingOrderBy());
_   __   _    _ assertEquals(1, moreOrders.get(0).getOrderId());
   _ _ _        assertEquals(1, moreOrders.get(0).getUserId());

 _     _   _ __ return null;
__ _      _ }
_     _ });
  __    assertEquals(count, this.getRetrievalCount());
_   }


}
 /**
 *_Flot plugin that provides spline_interpolation_for_line graphs
 * author: Alex_Bardas < alex.bardas@gmail.com >
 * modified_by: Avi Kohn_https://github.com/AMKohn
 * based on the spline interpolation_described_at:
 *		 http://scaledinnovation.com/analytics/splines/aboutSplines.html
 *
 * Example_usage:_(add in plot options series object)
_*		for_linespline:
_*			series: {
 *				...
 *				lines: {
_*					show: false
 *				},
 *				splines: {
 *					show:_true,
 *					tension: x, (float between 0 and 1, defaults_to 0.5),
 *				