Package org.qi4j.sample.rental.domain

Examples of org.qi4j.sample.rental.domain.RentalShop


            throws Exception
        {
            UnitOfWork uow = uowf.newUnitOfWork();
            try
            {
                RentalShop shop = createShop( uow );
                createCustomers( shop );
                createCars( shop );
                createBookings( shop );
                uow.complete();
            }
View Full Code Here


        public Node[] bookings( QuikitContext context )
        {
            ArrayList<Node> nodes = new ArrayList<Node>();
            Document dom = context.dom();
            UnitOfWork uow = uowf.currentUnitOfWork();
            RentalShop shop = uow.get( RentalShop.class, "SHOP" );
            for( Booking booking : shop.findAllBookings() )
            {
                String plate = booking.car().get().licensePlate().get();

                // TODO: Next version;
//                Node node = create( dom, "<li><a href='{1}'>{2}</a>{3}</li>", createLink( booking ), plate, createPeriod( booking.period().get() ) );
View Full Code Here

TOP

Related Classes of org.qi4j.sample.rental.domain.RentalShop

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.