gpt4 book ai didi

org.hibernate.annotations.common.reflection.XPackage.isAnnotationPresent()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-22 14:27:05 26 4
gpt4 key购买 nike

本文整理了Java中org.hibernate.annotations.common.reflection.XPackage.isAnnotationPresent()方法的一些代码示例,展示了XPackage.isAnnotationPresent()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XPackage.isAnnotationPresent()方法的具体详情如下:
包路径:org.hibernate.annotations.common.reflection.XPackage
类名称:XPackage
方法名:isAnnotationPresent

XPackage.isAnnotationPresent介绍

暂无

代码示例

代码示例来源:origin: hibernate/hibernate-orm

if ( pckg.isAnnotationPresent( SequenceGenerator.class ) ) {
  SequenceGenerator ann = pckg.getAnnotation( SequenceGenerator.class );
  IdentifierGeneratorDefinition idGen = buildIdGenerator( ann, context );
if ( pckg.isAnnotationPresent( SequenceGenerators.class ) ) {
  SequenceGenerators ann = pckg.getAnnotation( SequenceGenerators.class );
  for ( SequenceGenerator tableGenerator : ann.value() ) {
if ( pckg.isAnnotationPresent( TableGenerator.class ) ) {
  TableGenerator ann = pckg.getAnnotation( TableGenerator.class );
  IdentifierGeneratorDefinition idGen = buildIdGenerator( ann, context );
  context.getMetadataCollector().addIdentifierGenerator( idGen );
if ( pckg.isAnnotationPresent( TableGenerators.class ) ) {
  TableGenerators ann = pckg.getAnnotation( TableGenerators.class );
  for ( TableGenerator tableGenerator : ann.value() ) {

代码示例来源:origin: org.hibernate/hibernate-annotations

public static void bindPackage(String packageName, ExtendedMappings mappings) {
  XPackage pckg;
  try {
    pckg = mappings.getReflectionManager().packageForName( packageName );
  }
  catch ( ClassNotFoundException cnf ) {
    log.warn( "Package not found or wo package-info.java: {}", packageName );
    return;
  }
  if ( pckg.isAnnotationPresent( SequenceGenerator.class ) ) {
    SequenceGenerator ann = pckg.getAnnotation( SequenceGenerator.class );
    IdGenerator idGen = buildIdGenerator( ann, mappings );
    mappings.addGenerator( idGen );
    log.trace( "Add sequence generator with name: {}", idGen.getName() );
  }
  if ( pckg.isAnnotationPresent( TableGenerator.class ) ) {
    TableGenerator ann = pckg.getAnnotation( TableGenerator.class );
    IdGenerator idGen = buildIdGenerator( ann, mappings );
    mappings.addGenerator( idGen );
  }
  bindGenericGenerators( pckg, mappings );
  bindQueries( pckg, mappings );
  bindFilterDefs( pckg, mappings );
  bindTypeDefs( pckg, mappings );
  bindFetchProfiles( pckg, mappings );
  BinderHelper.bindAnyMetaDefs( pckg, mappings );
}

代码示例来源:origin: org.hibernate/com.springsource.org.hibernate.core

public static void bindPackage(String packageName, Mappings mappings) {
  XPackage pckg;
  try {
    pckg = mappings.getReflectionManager().packageForName( packageName );
  }
  catch ( ClassNotFoundException cnf ) {
    LOG.packageNotFound( packageName );
    return;
  }
  if ( pckg.isAnnotationPresent( SequenceGenerator.class ) ) {
    SequenceGenerator ann = pckg.getAnnotation( SequenceGenerator.class );
    IdGenerator idGen = buildIdGenerator( ann, mappings );
    mappings.addGenerator( idGen );
    if ( LOG.isTraceEnabled() ) {
      LOG.tracev( "Add sequence generator with name: {0}", idGen.getName() );
    }
  }
  if ( pckg.isAnnotationPresent( TableGenerator.class ) ) {
    TableGenerator ann = pckg.getAnnotation( TableGenerator.class );
    IdGenerator idGen = buildIdGenerator( ann, mappings );
    mappings.addGenerator( idGen );
  }
  bindGenericGenerators( pckg, mappings );
  bindQueries( pckg, mappings );
  bindFilterDefs( pckg, mappings );
  bindTypeDefs( pckg, mappings );
  bindFetchProfiles( pckg, mappings );
  BinderHelper.bindAnyMetaDefs( pckg, mappings );
}

代码示例来源:origin: org.hibernate/com.springsource.org.hibernate

public static void bindPackage(String packageName, Mappings mappings) {
  XPackage pckg;
  try {
    pckg = mappings.getReflectionManager().packageForName( packageName );
  }
  catch ( ClassNotFoundException cnf ) {
    LOG.packageNotFound( packageName );
    return;
  }
  if ( pckg.isAnnotationPresent( SequenceGenerator.class ) ) {
    SequenceGenerator ann = pckg.getAnnotation( SequenceGenerator.class );
    IdGenerator idGen = buildIdGenerator( ann, mappings );
    mappings.addGenerator( idGen );
    if ( LOG.isTraceEnabled() ) {
      LOG.tracev( "Add sequence generator with name: {0}", idGen.getName() );
    }
  }
  if ( pckg.isAnnotationPresent( TableGenerator.class ) ) {
    TableGenerator ann = pckg.getAnnotation( TableGenerator.class );
    IdGenerator idGen = buildIdGenerator( ann, mappings );
    mappings.addGenerator( idGen );
  }
  bindGenericGenerators( pckg, mappings );
  bindQueries( pckg, mappings );
  bindFilterDefs( pckg, mappings );
  bindTypeDefs( pckg, mappings );
  bindFetchProfiles( pckg, mappings );
  BinderHelper.bindAnyMetaDefs( pckg, mappings );
}

代码示例来源:origin: org.hibernate.orm/hibernate-core

if ( pckg.isAnnotationPresent( SequenceGenerator.class ) ) {
  SequenceGenerator ann = pckg.getAnnotation( SequenceGenerator.class );
  IdentifierGeneratorDefinition idGen = buildIdGenerator( ann, context );
if ( pckg.isAnnotationPresent( SequenceGenerators.class ) ) {
  SequenceGenerators ann = pckg.getAnnotation( SequenceGenerators.class );
  for ( SequenceGenerator tableGenerator : ann.value() ) {
if ( pckg.isAnnotationPresent( TableGenerator.class ) ) {
  TableGenerator ann = pckg.getAnnotation( TableGenerator.class );
  IdentifierGeneratorDefinition idGen = buildIdGenerator( ann, context );
  context.getMetadataCollector().addIdentifierGenerator( idGen );
if ( pckg.isAnnotationPresent( TableGenerators.class ) ) {
  TableGenerators ann = pckg.getAnnotation( TableGenerators.class );
  for ( TableGenerator tableGenerator : ann.value() ) {

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com