org.hibernate.annotations.Table.appliesTo()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(5.0k)|赞(0)|评价(0)|浏览(353)

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

Table.appliesTo介绍

暂无

代码示例

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

private org.hibernate.annotations.Table findMatchingComplimentTableAnnotation(Join join) {
  String tableName = join.getTable().getQuotedName();
  org.hibernate.annotations.Table table = annotatedClass.getAnnotation( org.hibernate.annotations.Table.class );
  org.hibernate.annotations.Table matchingTable = null;
  if ( table != null && tableName.equals( table.appliesTo() ) ) {
    matchingTable = table;
  }
  else {
    Tables tables = annotatedClass.getAnnotation( Tables.class );
    if ( tables != null ) {
      for (org.hibernate.annotations.Table current : tables.value()) {
        if ( tableName.equals( current.appliesTo() ) ) {
          matchingTable = current;
          break;
        }
      }
    }
  }
  return matchingTable;
}

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

public void processComplementaryTableDefinitions(org.hibernate.annotations.Table table) {
  String appliedTable = table.appliesTo();
  Iterator tables = persistentClass.getTableClosureIterator();
  Table hibTable = null;

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

private org.hibernate.annotations.Table findMatchingComplimentTableAnnotation(Join join) {
  String tableName = join.getTable().getQuotedName();
  org.hibernate.annotations.Table table = annotatedClass.getAnnotation( org.hibernate.annotations.Table.class );
  org.hibernate.annotations.Table matchingTable = null;
  if ( table != null && tableName.equals( table.appliesTo() ) ) {
    matchingTable = table;
  }
  else {
    Tables tables = annotatedClass.getAnnotation( Tables.class );
    if ( tables != null ) {
      for (org.hibernate.annotations.Table current : tables.value()) {
        if ( tableName.equals( current.appliesTo() ) ) {
          matchingTable = current;
          break;
        }
      }
    }
  }
  return matchingTable;
}

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

public void processComplementaryTableDefinitions(org.hibernate.annotations.Table table) {
  String appliedTable = table.appliesTo();
  Iterator tables = persistentClass.getTableClosureIterator();
  Table hibTable = null;

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

private org.hibernate.annotations.Table findMatchingComplimentTableAnnotation(Join join) {
  String tableName = join.getTable().getQuotedName();
  org.hibernate.annotations.Table table = annotatedClass.getAnnotation( org.hibernate.annotations.Table.class );
  org.hibernate.annotations.Table matchingTable = null;
  if ( table != null && tableName.equals( table.appliesTo() ) ) {
    matchingTable = table;
  }
  else {
    Tables tables = annotatedClass.getAnnotation( Tables.class );
    if ( tables != null ) {
      for (org.hibernate.annotations.Table current : tables.value()) {
        if ( tableName.equals( current.appliesTo() ) ) {
          matchingTable = current;
          break;
        }
      }
    }
  }
  return matchingTable;
}

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

private org.hibernate.annotations.Table findMatchingComplimentTableAnnotation(Join join) {
  String tableName = join.getTable().getQuotedName();
  org.hibernate.annotations.Table table = annotatedClass.getAnnotation( org.hibernate.annotations.Table.class );
  org.hibernate.annotations.Table matchingTable = null;
  if ( table != null && tableName.equals( table.appliesTo() ) ) {
    matchingTable = table;
  }
  else {
    Tables tables = annotatedClass.getAnnotation( Tables.class );
    if ( tables != null ) {
      for (org.hibernate.annotations.Table current : tables.value()) {
        if ( tableName.equals( current.appliesTo() ) ) {
          matchingTable = current;
          break;
        }
      }
    }
  }
  return matchingTable;
}

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

private org.hibernate.annotations.Table findMatchingComplimentTableAnnotation(Join join) {
  String tableName = join.getTable().getQuotedName();
  org.hibernate.annotations.Table table = annotatedClass.getAnnotation( org.hibernate.annotations.Table.class );
  org.hibernate.annotations.Table matchingTable = null;
  if ( table != null && tableName.equals( table.appliesTo() ) ) {
    matchingTable = table;
  }
  else {
    Tables tables = annotatedClass.getAnnotation( Tables.class );
    if ( tables != null ) {
      for (org.hibernate.annotations.Table current : tables.value()) {
        if ( tableName.equals( current.appliesTo() ) ) {
          matchingTable = current;
          break;
        }
      }
    }
  }
  return matchingTable;
}

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

public void processComplementaryTableDefinitions(org.hibernate.annotations.Table table) {
  String appliedTable = table.appliesTo();
  Iterator tables = persistentClass.getTableClosureIterator();
  Table hibTable = null;

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

public void processComplementaryTableDefinitions(org.hibernate.annotations.Table table) {
  String appliedTable = table.appliesTo();
  Iterator tables = persistentClass.getTableClosureIterator();
  Table hibTable = null;

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

public void processComplementaryTableDefinitions(org.hibernate.annotations.Table table) {
  String appliedTable = table.appliesTo();
  Iterator tables = persistentClass.getTableClosureIterator();
  Table hibTable = null;

代码示例来源:origin: jboss.jboss-embeddable-ejb3/hibernate-all

String tableName = table.appliesTo();
Iterator tables = persistentClass.getTableClosureIterator();
Table hibTable = null;

相关文章