Package net.loyin.jFinal.plugin

Examples of net.loyin.jFinal.plugin.AutoTableBindPlugin


    //数据库表与bean映射
    arp.addMapping("acategory", Acategory.class)// 映射acategory 表到 Acategory模型
    */
   
    //添加自动绑定model与表插件
    AutoTableBindPlugin autoTableBindPlugin = new AutoTableBindPlugin(druidPlugin, TableNameStyle.LOWER);
    autoTableBindPlugin.setShowSql(true);
    autoTableBindPlugin.setContainerFactory(new CaseInsensitiveContainerFactory());
    me.add(autoTableBindPlugin);
    me.add(new SqlInXmlPlugin());
   
//    me.add(new SpringPlugin());//添加spring插件自动从WEB-INF下寻找application.xml
  }
View Full Code Here


    //数据库表与bean映射
    arp.addMapping("acategory", Acategory.class)// 映射acategory 表到 Acategory模型
    */
   
    //添加自动绑定model与表插件
    AutoTableBindPlugin autoTableBindPlugin = new AutoTableBindPlugin(druidPlugin, TableNameStyle.LOWER);
    autoTableBindPlugin.setShowSql(true);
    me.add(autoTableBindPlugin);
    me.add(new SqlInXmlPlugin());
   
//    me.add(new SpringPlugin());//添加spring插件自动从WEB-INF下寻找application.xml
  }
View Full Code Here

TOP

Related Classes of net.loyin.jFinal.plugin.AutoTableBindPlugin

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.