All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.ebeaninternal.server.deploy.parse.AnnotationSql Maven / Gradle / Ivy

There is a newer version: 15.8.0
Show newest version
package io.ebeaninternal.server.deploy.parse;

import io.ebean.annotation.Sql;
import io.ebean.util.AnnotationUtil;
import io.ebeaninternal.server.deploy.BeanDescriptor;

/**
 * Read the class level deployment annotations.
 */
final class AnnotationSql extends AnnotationParser {

  AnnotationSql(DeployBeanInfo info, ReadAnnotationConfig readConfig) {
    super(info, readConfig);
  }

  @Override
  public void parse() {
    Class cls = descriptor.getBeanType();
    if (AnnotationUtil.typeHas(cls, Sql.class)) {
      descriptor.setEntityType(BeanDescriptor.EntityType.SQL);
    }
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy