/**
 *
 * Copyright (c) 2006-2015, Speedment, Inc. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); You may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at:
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */
package com.speedment.examples.hares;


import com.company.speedment.test.HaresApplication;
import com.company.speedment.test.HaresApplicationBuilder;
import com.company.speedment.test.db0.hares.carrot.CarrotManager;
import com.company.speedment.test.db0.hares.hare.HareManager;
import com.company.speedment.test.db0.hares.human.HumanManager;
import com.speedment.plugins.json.JsonBundle;
import static com.speedment.runtime.core.ApplicationBuilder.LogType.REMOVE;
import static com.speedment.runtime.core.ApplicationBuilder.LogType.STREAM;
import static com.speedment.runtime.core.ApplicationBuilder.LogType.UPDATE;


/**
 *
 * @author pemi
 */
public class BaseDemo {


    protected final HaresApplication haresApplication;

    protected final HareManager hares;
    protected final CarrotManager carrots;
    protected final HumanManager humans;

    public BaseDemo() {

        haresApplication = new HaresApplicationBuilder()
            .withPassword("hare")
            .withLogging(STREAM)
            .withLogging(UPDATE)
            .withLogging(REMOVE)
            //.withLogging(APPLICATION_BUILDER)
            .withBundle(JsonBundle.class)
            .build();
        hares = haresApplication.getOrThrow(HareManager.class);
        carrots = haresApplication.getOrThrow(CarrotManager.class);
        humans = haresApplication.getOrThrow(HumanManager.class);
        
    }

}

@@ -1013,16 +1013,93 @@
 Bundle;%0A
+import static com.speedment.runtime.core.ApplicationBuilder.LogType.PERSIST;%0A
 import s
@@ -1702,16 +1702,50 @@
 STREAM)%0A
+            .withLogging(PERSIST)%0A
         

Add PERSIST logging