public DbEntityDescriptor( final Class<E> type, final String schemaName, final TableNamingStrategy tableNamingStrategy, final ColumnNamingStrategy columnNamingStrategy) { this.type = type; this.entityName = type.getSimpleName(); this.isAnnotated = DbMetaUtil.resolveIsAnnotated(type); this.schemaName = DbMetaUtil.resolveSchemaName(type, schemaName); this.columnNamingStrategy = columnNamingStrategy; this.mappedTypes = DbMetaUtil.resolveMappedTypes(type); this.tableNameForQuery = DbMetaUtil.resolveTableName(type, tableNamingStrategy); if (StringUtil.detectQuoteChar(tableNameForQuery) != 0) { this.tableName = StringUtil.substring(tableNameForQuery, 1, -1); } else { this.tableName = tableNameForQuery; } }
public DbEntityDescriptor(Class type, String schemaName, TableNamingStrategy tableNamingStrategy, ColumnNamingStrategy columnNamingStrategy, boolean strictCompare) { this.type = type; this.entityName = type.getSimpleName(); this.isAnnotated = DbMetaUtil.resolveIsAnnotated(type); this.schemaName = DbMetaUtil.resolveSchemaName(type, schemaName); this.tableName = DbMetaUtil.resolveTableName(type, tableNamingStrategy); this.columnNamingStrategy = columnNamingStrategy; this.strictCompare = strictCompare; }
public DbEntityDescriptor( final Class<E> type, final String schemaName, final TableNamingStrategy tableNamingStrategy, final ColumnNamingStrategy columnNamingStrategy) { this.type = type; this.entityName = type.getSimpleName(); this.isAnnotated = DbMetaUtil.resolveIsAnnotated(type); this.schemaName = DbMetaUtil.resolveSchemaName(type, schemaName); this.columnNamingStrategy = columnNamingStrategy; this.mappedTypes = DbMetaUtil.resolveMappedTypes(type); this.tableNameForQuery = DbMetaUtil.resolveTableName(type, tableNamingStrategy); if (StringUtil.detectQuoteChar(tableNameForQuery) != 0) { this.tableName = StringUtil.substring(tableNameForQuery, 1, -1); } else { this.tableName = tableNameForQuery; } }