Package net.loyin.jFinal.anatation

Examples of net.loyin.jFinal.anatation.TableBind


  @SuppressWarnings({ "rawtypes", "unchecked" })
  @Override
  public boolean start() {
    try {
      List<Class> modelClasses = ClassSearcher.findClasses(Model.class);
      TableBind tb = null;
      for (Class modelClass : modelClasses) {
        tb = (TableBind) modelClass.getAnnotation(TableBind.class);
        if (tb == null) {
          this.addMapping(tableName(modelClass), modelClass);
        } else {
          if(StringKit.notBlank(tb.name())){
            if (StringKit.notBlank(tb.pk())) {
              this.addMapping(tb.name(), tb.pk(), modelClass);
            } else {
              this.addMapping(tb.name(), modelClass);
            }
          }
        }
      }
    } catch (Exception e) {
View Full Code Here


  @SuppressWarnings({ "rawtypes", "unchecked" })
  @Override
  public boolean start() {
    try {
      List<Class> modelClasses = ClassSearcher.findClasses(Model.class);
      TableBind tb = null;
      for (Class modelClass : modelClasses) {
        tb = (TableBind) modelClass.getAnnotation(TableBind.class);
        if (tb == null) {
          this.addMapping(tableName(modelClass), modelClass);
        } else {
          if(StringKit.notBlank(tb.name())){
            if (StringKit.notBlank(tb.pk())) {
              this.addMapping(tb.name(), tb.pk(), modelClass);
            } else {
              this.addMapping(tb.name(), modelClass);
            }
          }
        }
      }
    } catch (Exception e) {
View Full Code Here

TOP

Related Classes of net.loyin.jFinal.anatation.TableBind

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.