@@ -0,0 +1,1708 @@
+/*%0A * Copyright (c) www.bugull.com%0A * %0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *      http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0A%0Apackage com.bugull.mongo.crud;%0A%0Aimport com.bugull.mongo.BuguMapper;%0Aimport com.bugull.mongo.base.BaseTest;%0Aimport com.bugull.mongo.dao.ProductDao;%0Aimport com.bugull.mongo.entity.Product;%0Aimport java.util.List;%0Aimport org.junit.Test;%0A%0A/**%0A *%0A * @author Frank Wen(xbwen@hotmail.com)%0A */%0Apublic class LazyTest extends BaseTest %7B%0A    %0A    @Test%0A    public void test()%7B%0A        connectDB();%0A        %0A        ProductDao pDao = new ProductDao();%0A        List%3CProduct%3E list = pDao.findAll();%0A        //the description property is lazy, it will not contained in the result list.%0A        for(Product p : list)%7B%0A            System.out.println(%22description: %22 + p.getDescription());%0A        %7D%0A        %0A        //you can fetch out lazy property.%0A        BuguMapper.fetchLazy(list);%0A        for(Product p : list)%7B%0A            System.out.println(%22description: %22 + p.getDescription());%0A        %7D%0A        %0A        //lazy property will not play a part if only one record is return.%0A        Product p = pDao.findOne();%0A        System.out.println(%22description: %22 + p.getDescription());%0A        %0A        disconnectDB();%0A    %7D%0A%0A%7D%0A

add lazy test