[hibernate/hibernate-validator] d431f5: HV-725 @ConvertGroup documentation
by GitHub
Branch: refs/heads/HV-725
Home: https://github.com/hibernate/hibernate-validator
Commit: d431f538ee0c29919ba0ef33eae174d5a3b5f940
https://github.com/hibernate/hibernate-validator/commit/d431f538ee0c29919...
Author: Hardy Ferentschik <hibernate(a)ferentschik.de>
Date: 2013-04-16 (Tue, 16 Apr 2013)
Changed paths:
M documentation/src/main/docbook/en-US/modules/groups.xml
A documentation/src/test/java/org/hibernate/validator/referenceguide/chapter03/groups/groupconversion/Car.java
A documentation/src/test/java/org/hibernate/validator/referenceguide/chapter03/groups/groupconversion/CarChecks.java
A documentation/src/test/java/org/hibernate/validator/referenceguide/chapter03/groups/groupconversion/Driver.java
A documentation/src/test/java/org/hibernate/validator/referenceguide/chapter03/groups/groupconversion/DriverChecks.java
A documentation/src/test/java/org/hibernate/validator/referenceguide/chapter03/groups/groupconversion/GroupConversionTest.java
A documentation/src/test/java/org/hibernate/validator/referenceguide/chapter03/groups/groupconversion/Person.java
Log Message:
-----------
HV-725 @ConvertGroup documentation
Commit: 220ac233739edabc18fa072dc30b9b19e28031a7
https://github.com/hibernate/hibernate-validator/commit/220ac233739edabc1...
Author: Hardy Ferentschik <hibernate(a)ferentschik.de>
Date: 2013-04-16 (Tue, 16 Apr 2013)
Changed paths:
M documentation/src/main/docbook/en-US/master.xml
M documentation/src/main/docbook/en-US/modules/furtherreading.xml
M documentation/src/main/docbook/en-US/modules/preface.xml
Log Message:
-----------
HV-725 Updating further reading section and mentioing JSR 349
Commit: bc4094c3f24248405d83aa3f02e0f7ad56fbb5d9
https://github.com/hibernate/hibernate-validator/commit/bc4094c3f24248405...
Author: Gunnar Morling <gunnar.morling(a)googlemail.com>
Date: 2013-04-17 (Wed, 17 Apr 2013)
Changed paths:
M documentation/src/main/docbook/en-US/modules/groups.xml
Log Message:
-----------
HV-725 Removing import statements, fixing indentation (groups chapter)
Compare: https://github.com/hibernate/hibernate-validator/compare/cbdee2fee69f...b...
11 years, 9 months
[hibernate/hibernate-orm] 76fe91: HHH-5845 - Lazy loading of audited entites with re...
by GitHub
Branch: refs/heads/4.2
Home: https://github.com/hibernate/hibernate-orm
Commit: 76fe91cf4a9aadb1f59fd886d5497708e5287c87
https://github.com/hibernate/hibernate-orm/commit/76fe91cf4a9aadb1f59fd88...
Author: Lukasz Antoniak <lukasz.antoniak(a)gmail.com>
Date: 2013-04-17 (Wed, 17 Apr 2013)
Changed paths:
M hibernate-envers/src/main/java/org/hibernate/envers/entities/mapper/relation/AbstractCollectionMapper.java
M hibernate-envers/src/main/java/org/hibernate/envers/entities/mapper/relation/BasicCollectionMapper.java
M hibernate-envers/src/main/java/org/hibernate/envers/entities/mapper/relation/ListCollectionMapper.java
M hibernate-envers/src/main/java/org/hibernate/envers/entities/mapper/relation/MapCollectionMapper.java
M hibernate-envers/src/main/java/org/hibernate/envers/entities/mapper/relation/SortedMapCollectionMapper.java
M hibernate-envers/src/main/java/org/hibernate/envers/entities/mapper/relation/SortedSetCollectionMapper.java
M hibernate-envers/src/main/java/org/hibernate/envers/entities/mapper/relation/lazy/initializor/AbstractCollectionInitializor.java
M hibernate-envers/src/main/java/org/hibernate/envers/entities/mapper/relation/lazy/initializor/ArrayCollectionInitializor.java
M hibernate-envers/src/main/java/org/hibernate/envers/entities/mapper/relation/lazy/initializor/BasicCollectionInitializor.java
M hibernate-envers/src/main/java/org/hibernate/envers/entities/mapper/relation/lazy/initializor/ListCollectionInitializor.java
M hibernate-envers/src/main/java/org/hibernate/envers/entities/mapper/relation/lazy/initializor/MapCollectionInitializor.java
M hibernate-envers/src/main/java/org/hibernate/envers/entities/mapper/relation/lazy/initializor/SortedMapCollectionInitializor.java
M hibernate-envers/src/main/java/org/hibernate/envers/entities/mapper/relation/lazy/initializor/SortedSetCollectionInitializor.java
M hibernate-envers/src/main/java/org/hibernate/envers/entities/mapper/relation/query/AbstractRelationQueryGenerator.java
M hibernate-envers/src/main/java/org/hibernate/envers/entities/mapper/relation/query/OneAuditEntityQueryGenerator.java
M hibernate-envers/src/main/java/org/hibernate/envers/entities/mapper/relation/query/OneEntityQueryGenerator.java
M hibernate-envers/src/main/java/org/hibernate/envers/entities/mapper/relation/query/RelationQueryGenerator.java
M hibernate-envers/src/main/java/org/hibernate/envers/entities/mapper/relation/query/ThreeEntityQueryGenerator.java
M hibernate-envers/src/main/java/org/hibernate/envers/entities/mapper/relation/query/TwoEntityOneAuditedQueryGenerator.java
M hibernate-envers/src/main/java/org/hibernate/envers/entities/mapper/relation/query/TwoEntityQueryGenerator.java
M hibernate-envers/src/main/java/org/hibernate/envers/query/impl/EntitiesAtRevisionQuery.java
M hibernate-envers/src/main/java/org/hibernate/envers/strategy/AuditStrategy.java
M hibernate-envers/src/main/java/org/hibernate/envers/strategy/DefaultAuditStrategy.java
M hibernate-envers/src/main/java/org/hibernate/envers/strategy/ValidityAuditStrategy.java
M hibernate-envers/src/main/java/org/hibernate/envers/tools/MutableInteger.java
M hibernate-envers/src/main/java/org/hibernate/envers/tools/Pair.java
M hibernate-envers/src/main/java/org/hibernate/envers/tools/query/Parameters.java
M hibernate-envers/src/main/java/org/hibernate/envers/tools/query/QueryBuilder.java
M hibernate-envers/src/test/java/org/hibernate/envers/test/integration/proxy/RemovedObjectQueryTest.java
Log Message:
-----------
HHH-5845 - Lazy loading of audited entites with revision type DEL
11 years, 9 months
[hibernate/hibernate-orm] 834219: HHH-5845 - Lazy loading of audited entites with re...
by GitHub
Branch: refs/heads/master
Home: https://github.com/hibernate/hibernate-orm
Commit: 83421940576f79e1079163f60ef5b7617a28975e
https://github.com/hibernate/hibernate-orm/commit/83421940576f79e1079163f...
Author: Lukasz Antoniak <lukasz.antoniak(a)gmail.com>
Date: 2013-04-17 (Wed, 17 Apr 2013)
Changed paths:
M hibernate-envers/src/main/java/org/hibernate/envers/internal/entities/mapper/relation/AbstractCollectionMapper.java
M hibernate-envers/src/main/java/org/hibernate/envers/internal/entities/mapper/relation/BasicCollectionMapper.java
M hibernate-envers/src/main/java/org/hibernate/envers/internal/entities/mapper/relation/ListCollectionMapper.java
M hibernate-envers/src/main/java/org/hibernate/envers/internal/entities/mapper/relation/MapCollectionMapper.java
M hibernate-envers/src/main/java/org/hibernate/envers/internal/entities/mapper/relation/SortedMapCollectionMapper.java
M hibernate-envers/src/main/java/org/hibernate/envers/internal/entities/mapper/relation/SortedSetCollectionMapper.java
M hibernate-envers/src/main/java/org/hibernate/envers/internal/entities/mapper/relation/lazy/initializor/AbstractCollectionInitializor.java
M hibernate-envers/src/main/java/org/hibernate/envers/internal/entities/mapper/relation/lazy/initializor/ArrayCollectionInitializor.java
M hibernate-envers/src/main/java/org/hibernate/envers/internal/entities/mapper/relation/lazy/initializor/BasicCollectionInitializor.java
M hibernate-envers/src/main/java/org/hibernate/envers/internal/entities/mapper/relation/lazy/initializor/ListCollectionInitializor.java
M hibernate-envers/src/main/java/org/hibernate/envers/internal/entities/mapper/relation/lazy/initializor/MapCollectionInitializor.java
M hibernate-envers/src/main/java/org/hibernate/envers/internal/entities/mapper/relation/lazy/initializor/SortedMapCollectionInitializor.java
M hibernate-envers/src/main/java/org/hibernate/envers/internal/entities/mapper/relation/lazy/initializor/SortedSetCollectionInitializor.java
M hibernate-envers/src/main/java/org/hibernate/envers/internal/entities/mapper/relation/query/AbstractRelationQueryGenerator.java
M hibernate-envers/src/main/java/org/hibernate/envers/internal/entities/mapper/relation/query/OneAuditEntityQueryGenerator.java
M hibernate-envers/src/main/java/org/hibernate/envers/internal/entities/mapper/relation/query/OneEntityQueryGenerator.java
M hibernate-envers/src/main/java/org/hibernate/envers/internal/entities/mapper/relation/query/RelationQueryGenerator.java
M hibernate-envers/src/main/java/org/hibernate/envers/internal/entities/mapper/relation/query/ThreeEntityQueryGenerator.java
M hibernate-envers/src/main/java/org/hibernate/envers/internal/entities/mapper/relation/query/TwoEntityOneAuditedQueryGenerator.java
M hibernate-envers/src/main/java/org/hibernate/envers/internal/entities/mapper/relation/query/TwoEntityQueryGenerator.java
M hibernate-envers/src/main/java/org/hibernate/envers/internal/tools/MutableInteger.java
M hibernate-envers/src/main/java/org/hibernate/envers/internal/tools/query/Parameters.java
M hibernate-envers/src/main/java/org/hibernate/envers/internal/tools/query/QueryBuilder.java
M hibernate-envers/src/main/java/org/hibernate/envers/query/internal/impl/EntitiesAtRevisionQuery.java
M hibernate-envers/src/main/java/org/hibernate/envers/strategy/AuditStrategy.java
M hibernate-envers/src/main/java/org/hibernate/envers/strategy/DefaultAuditStrategy.java
M hibernate-envers/src/main/java/org/hibernate/envers/strategy/ValidityAuditStrategy.java
M hibernate-envers/src/main/java/org/hibernate/envers/tools/Pair.java
M hibernate-envers/src/test/java/org/hibernate/envers/test/integration/proxy/RemovedObjectQueryTest.java
Log Message:
-----------
HHH-5845 - Lazy loading of audited entites with revision type DEL
11 years, 9 months
[hibernate/hibernate-orm] cbddec: HHH-6457 Improve how BaseCoreFunctionalTestCase bu...
by GitHub
Branch: refs/heads/metamodel
Home: https://github.com/hibernate/hibernate-orm
Commit: cbddeccf9b7a23fb1f05eb7771a3a75119941be5
https://github.com/hibernate/hibernate-orm/commit/cbddeccf9b7a23fb1f05eb7...
Author: Brett Meyer <brmeyer(a)redhat.com>
Date: 2013-04-16 (Tue, 16 Apr 2013)
Changed paths:
M hibernate-core/src/test/java/org/hibernate/test/annotations/beanvalidation/BeanValidationDisabledTest.java
M hibernate-core/src/test/java/org/hibernate/test/annotations/beanvalidation/BeanValidationGroupsTest.java
M hibernate-core/src/test/java/org/hibernate/test/annotations/beanvalidation/BeanValidationProvidedFactoryTest.java
M hibernate-core/src/test/java/org/hibernate/test/annotations/beanvalidation/DDLWithoutCallbackTest.java
M hibernate-core/src/test/java/org/hibernate/test/annotations/generics/GenericsTest.java
M hibernate-core/src/test/java/org/hibernate/test/annotations/id/generationmappings/NewGeneratorMappingsTest.java
M hibernate-core/src/test/java/org/hibernate/test/annotations/id/sequences/HibernateSequenceTest.java
M hibernate-core/src/test/java/org/hibernate/test/annotations/manytomany/complex/ManyToManyMaxFetchDepth0Test.java
M hibernate-core/src/test/java/org/hibernate/test/annotations/naturalid/ImmutableNaturalKeyLookupTest.java
M hibernate-core/src/test/java/org/hibernate/test/annotations/naturalid/NaturalIdOnSingleManyToOneTest.java
M hibernate-core/src/test/java/org/hibernate/test/annotations/naturalid/NaturalIdTest.java
M hibernate-core/src/test/java/org/hibernate/test/annotations/onetomany/DefaultNullOrderingTest.java
M hibernate-core/src/test/java/org/hibernate/test/annotations/onetoone/hhh4851/HHH4851Test.java
M hibernate-core/src/test/java/org/hibernate/test/annotations/query/QueryAndSQLTest.java
M hibernate-core/src/test/java/org/hibernate/test/annotations/quote/QuoteGlobalTest.java
M hibernate-core/src/test/java/org/hibernate/test/annotations/quote/resultsetmappings/ExplicitSqlResultSetMappingTest.java
M hibernate-core/src/test/java/org/hibernate/test/annotations/xml/ejb3/NonExistentOrmVersionTest.java
M hibernate-core/src/test/java/org/hibernate/test/batch/BatchTest.java
M hibernate-core/src/test/java/org/hibernate/test/batchfetch/BatchFetchTest.java
M hibernate-core/src/test/java/org/hibernate/test/bidir/onetomany/nonindexed/AbstractBidirectionalOneToManyTest.java
M hibernate-core/src/test/java/org/hibernate/test/cache/InsertedDataTest.java
M hibernate-core/src/test/java/org/hibernate/test/cache/ReferenceCacheTest.java
M hibernate-core/src/test/java/org/hibernate/test/cascade/circle/CascadeMergeToChildBeforeParentTest.java
M hibernate-core/src/test/java/org/hibernate/test/cascade/circle/MultiPathCircleCascadeTest.java
M hibernate-core/src/test/java/org/hibernate/test/collection/set/LazyCollectionInitializationTest.java
M hibernate-core/src/test/java/org/hibernate/test/collection/set/PersistentSetTest.java
M hibernate-core/src/test/java/org/hibernate/test/component/basic/ComponentTest.java
M hibernate-core/src/test/java/org/hibernate/test/connections/AggressiveReleaseTest.java
M hibernate-core/src/test/java/org/hibernate/test/connections/BasicConnectionProviderTest.java
M hibernate-core/src/test/java/org/hibernate/test/connections/HibernateCreateBlobFailedCase.java
M hibernate-core/src/test/java/org/hibernate/test/connections/SuppliedConnectionTest.java
M hibernate-core/src/test/java/org/hibernate/test/connections/ThreadLocalCurrentSessionTest.java
M hibernate-core/src/test/java/org/hibernate/test/criteria/CriteriaQueryTest.java
M hibernate-core/src/test/java/org/hibernate/test/cuk/CompositePropertyRefTest.java
M hibernate-core/src/test/java/org/hibernate/test/dirtiness/CustomDirtinessStrategyTest.java
M hibernate-core/src/test/java/org/hibernate/test/discriminator/SimpleInheritanceTest.java
M hibernate-core/src/test/java/org/hibernate/test/dynamicentity/interceptor/InterceptorDynamicEntityTest.java
M hibernate-core/src/test/java/org/hibernate/test/dynamicentity/tuplizer/TuplizerDynamicEntityTest.java
M hibernate-core/src/test/java/org/hibernate/test/entitymode/map/basic/DynamicClassTest.java
M hibernate-core/src/test/java/org/hibernate/test/enums/UnspecifiedEnumTypeTest.java
M hibernate-core/src/test/java/org/hibernate/test/events/CallbackTest.java
M hibernate-core/src/test/java/org/hibernate/test/fetchprofiles/join/JoinFetchProfileTest.java
M hibernate-core/src/test/java/org/hibernate/test/fileimport/MultiLineImportFileTest.java
M hibernate-core/src/test/java/org/hibernate/test/fileimport/SingleLineImportFileTest.java
M hibernate-core/src/test/java/org/hibernate/test/filter/DynamicFilterTest.java
M hibernate-core/src/test/java/org/hibernate/test/generatedkeys/identity/IdentityGeneratedKeysTest.java
M hibernate-core/src/test/java/org/hibernate/test/hql/ASTParserLoadingOrderByTest.java
M hibernate-core/src/test/java/org/hibernate/test/hql/ASTParserLoadingTest.java
M hibernate-core/src/test/java/org/hibernate/test/hql/ClassicTranslatorTest.java
M hibernate-core/src/test/java/org/hibernate/test/hql/FunctionNameAsColumnTest.java
M hibernate-core/src/test/java/org/hibernate/test/id/UseIdentifierRollbackTest.java
M hibernate-core/src/test/java/org/hibernate/test/immutable/ImmutableTest.java
M hibernate-core/src/test/java/org/hibernate/test/immutable/entitywithmutablecollection/AbstractEntityWithManyToManyTest.java
M hibernate-core/src/test/java/org/hibernate/test/immutable/entitywithmutablecollection/AbstractEntityWithOneToManyTest.java
M hibernate-core/src/test/java/org/hibernate/test/inheritance/SimpleInheritanceTest.java
M hibernate-core/src/test/java/org/hibernate/test/insertordering/InsertOrderingTest.java
M hibernate-core/src/test/java/org/hibernate/test/iterate/IterateTest.java
M hibernate-core/src/test/java/org/hibernate/test/joinfetch/JoinFetchTest.java
M hibernate-core/src/test/java/org/hibernate/test/jpa/AbstractJPATest.java
M hibernate-core/src/test/java/org/hibernate/test/jpa/naturalid/ImmutableNaturalIdTest.java
M hibernate-core/src/test/java/org/hibernate/test/jpa/txn/TransactionJoiningTest.java
M hibernate-core/src/test/java/org/hibernate/test/keymanytoone/bidir/component/EagerKeyManyToOneTest.java
M hibernate-core/src/test/java/org/hibernate/test/keymanytoone/bidir/component/LazyKeyManyToOneTest.java
M hibernate-core/src/test/java/org/hibernate/test/keymanytoone/bidir/embedded/KeyManyToOneTest.java
M hibernate-core/src/test/java/org/hibernate/test/lazyonetoone/LazyOneToOneTest.java
M hibernate-core/src/test/java/org/hibernate/test/lob/JpaLargeBlobTest.java
M hibernate-core/src/test/java/org/hibernate/test/manytomany/ManyToManyTest.java
M hibernate-core/src/test/java/org/hibernate/test/manytomany/batchload/BatchedManyToManyTest.java
M hibernate-core/src/test/java/org/hibernate/test/manytomany/ordered/OrderedManyToManyTest.java
M hibernate-core/src/test/java/org/hibernate/test/namingstrategy/NamingStrategyTest.java
M hibernate-core/src/test/java/org/hibernate/test/naturalid/immutable/ImmutableNaturalIdTest.java
M hibernate-core/src/test/java/org/hibernate/test/naturalid/immutableentity/ImmutableEntityNaturalIdTest.java
M hibernate-core/src/test/java/org/hibernate/test/naturalid/mutable/MutableNaturalIdTest.java
M hibernate-core/src/test/java/org/hibernate/test/naturalid/mutable/cached/CachedMutableNaturalIdTest.java
M hibernate-core/src/test/java/org/hibernate/test/nonflushedchanges/AbstractOperationTestCase.java
M hibernate-core/src/test/java/org/hibernate/test/ondelete/OnDeleteTest.java
M hibernate-core/src/test/java/org/hibernate/test/ondemandload/LazyLoadingTest.java
M hibernate-core/src/test/java/org/hibernate/test/onetoone/formula/OneToOneFormulaTest.java
M hibernate-core/src/test/java/org/hibernate/test/onetoone/joined/JoinedSubclassOneToOneTest.java
M hibernate-core/src/test/java/org/hibernate/test/onetoone/nopojo/DynamicMapOneToOneTest.java
M hibernate-core/src/test/java/org/hibernate/test/onetoone/optional/OptionalOneToOneTest.java
M hibernate-core/src/test/java/org/hibernate/test/onetoone/singletable/DiscrimSubclassOneToOneTest.java
M hibernate-core/src/test/java/org/hibernate/test/ops/AbstractOperationTestCase.java
M hibernate-core/src/test/java/org/hibernate/test/ops/GetLoadTest.java
M hibernate-core/src/test/java/org/hibernate/test/ops/SaveOrUpdateTest.java
M hibernate-core/src/test/java/org/hibernate/test/ops/SimpleOpsTest.java
M hibernate-core/src/test/java/org/hibernate/test/propertyref/DoesNotWorkTest.java
M hibernate-core/src/test/java/org/hibernate/test/propertyref/DoesNotWorkWithHbmTest.java
M hibernate-core/src/test/java/org/hibernate/test/propertyref/basic/PropertyRefTest.java
M hibernate-core/src/test/java/org/hibernate/test/proxy/ProxyTest.java
M hibernate-core/src/test/java/org/hibernate/test/querycache/AbstractQueryCacheResultTransformerTest.java
M hibernate-core/src/test/java/org/hibernate/test/querycache/QueryCacheTest.java
M hibernate-core/src/test/java/org/hibernate/test/readonly/AbstractReadOnlyTest.java
M hibernate-core/src/test/java/org/hibernate/test/stateless/StatelessSessionQueryTest.java
M hibernate-core/src/test/java/org/hibernate/test/stats/StatsTest.java
M hibernate-core/src/test/java/org/hibernate/test/subselectfetch/SubselectFetchTest.java
M hibernate-core/src/test/java/org/hibernate/test/timestamp/TimestampTest.java
M hibernate-core/src/test/java/org/hibernate/test/tm/CMTTest.java
M hibernate-core/src/test/java/org/hibernate/test/unidir/manytoone/UnidirectionalManyToOneTest.java
M hibernate-core/src/test/java/org/hibernate/test/unidir/onetomany/nonindexed/BackrefTest.java
M hibernate-infinispan/src/test/java/org/hibernate/test/cache/infinispan/functional/cluster/DualNodeTestCase.java
M hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseCoreFunctionalTestCase.java
M hibernate-testing/src/main/java/org/hibernate/testing/junit4/BaseFunctionalTestCase.java
M hibernate-testing/src/main/java/org/hibernate/testing/junit4/Helper.java
Log Message:
-----------
HHH-6457 Improve how BaseCoreFunctionalTestCase builds SessionFactory from new metadata mappings
11 years, 9 months
Hibernate SVN: r21106 - in core/branches/Branch_3_3_2_GA_CP/core/src/main/java/org/hibernate: tool/hbm2ddl and 1 other directory.
by hibernate-commits@lists.jboss.org
Author: brmeyer
Date: 2013-04-16 12:21:45 -0400 (Tue, 16 Apr 2013)
New Revision: 21106
Modified:
core/branches/Branch_3_3_2_GA_CP/core/src/main/java/org/hibernate/cfg/Environment.java
core/branches/Branch_3_3_2_GA_CP/core/src/main/java/org/hibernate/tool/hbm2ddl/DatabaseMetadata.java
core/branches/Branch_3_3_2_GA_CP/core/src/main/java/org/hibernate/tool/hbm2ddl/SchemaUpdate.java
core/branches/Branch_3_3_2_GA_CP/core/src/main/java/org/hibernate/tool/hbm2ddl/SchemaValidator.java
Log:
JBPAPP-10709 Hibernate SchemaValidation on synonyms
Modified: core/branches/Branch_3_3_2_GA_CP/core/src/main/java/org/hibernate/cfg/Environment.java
===================================================================
--- core/branches/Branch_3_3_2_GA_CP/core/src/main/java/org/hibernate/cfg/Environment.java 2013-04-15 18:46:57 UTC (rev 21105)
+++ core/branches/Branch_3_3_2_GA_CP/core/src/main/java/org/hibernate/cfg/Environment.java 2013-04-16 16:21:45 UTC (rev 21106)
@@ -537,6 +537,14 @@
public static final String BYTECODE_PROVIDER = "hibernate.bytecode.provider";
public static final String JPAQL_STRICT_COMPLIANCE= "hibernate.query.jpaql_strict_compliance";
+
+ /**
+ * If enabled, allows {@link org.hibernate.tool.hbm2ddl.DatabaseMetadata} to
+ * support synonyms during schema update and validations. Due to the
+ * possibility that this would return duplicate tables (especially in
+ * Oracle), this is disabled by default.
+ */
+ public static final String ENABLE_SYNONYMS = "hibernate.synonyms";
private static final BytecodeProvider BYTECODE_PROVIDER_INSTANCE;
private static final boolean ENABLE_BINARY_STREAMS;
Modified: core/branches/Branch_3_3_2_GA_CP/core/src/main/java/org/hibernate/tool/hbm2ddl/DatabaseMetadata.java
===================================================================
--- core/branches/Branch_3_3_2_GA_CP/core/src/main/java/org/hibernate/tool/hbm2ddl/DatabaseMetadata.java 2013-04-15 18:46:57 UTC (rev 21105)
+++ core/branches/Branch_3_3_2_GA_CP/core/src/main/java/org/hibernate/tool/hbm2ddl/DatabaseMetadata.java 2013-04-16 16:21:45 UTC (rev 21106)
@@ -35,10 +35,13 @@
import java.util.Set;
import org.hibernate.HibernateException;
+import org.hibernate.cfg.Configuration;
+import org.hibernate.cfg.Environment;
import org.hibernate.dialect.Dialect;
import org.hibernate.exception.JDBCExceptionHelper;
import org.hibernate.exception.SQLExceptionConverter;
import org.hibernate.mapping.Table;
+import org.hibernate.util.PropertiesHelper;
import org.hibernate.util.StringHelper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -57,20 +60,52 @@
private DatabaseMetaData meta;
private SQLExceptionConverter sqlExceptionConverter;
+
+ private final String[] types;
- public DatabaseMetadata(Connection connection, Dialect dialect) throws SQLException {
- this(connection, dialect, true);
+ /**
+ * @deprecated Use
+ * {@link #DatabaseMetadata(Connection, Dialect, Configuration)}
+ * instead
+ */
+ @Deprecated
+ public DatabaseMetadata(Connection connection, Dialect dialect)
+ throws SQLException {
+ this(connection, dialect, null, true);
}
- public DatabaseMetadata(Connection connection, Dialect dialect, boolean extras) throws SQLException {
+ /**
+ * @deprecated Use
+ * {@link #DatabaseMetadata(Connection, Dialect, Configuration, boolean)}
+ * instead
+ */
+ @Deprecated
+ public DatabaseMetadata(Connection connection, Dialect dialect,
+ boolean extras) throws SQLException {
+ this(connection, dialect, null, extras);
+ }
+
+ public DatabaseMetadata(Connection connection, Dialect dialect,
+ Configuration config) throws SQLException {
+ this(connection, dialect, config, true);
+ }
+
+ public DatabaseMetadata(Connection connection, Dialect dialect,
+ Configuration config, boolean extras) throws SQLException {
sqlExceptionConverter = dialect.buildSQLExceptionConverter();
meta = connection.getMetaData();
this.extras = extras;
initSequences(connection, dialect);
+ if (config != null
+ && PropertiesHelper.getBoolean(
+ Environment.ENABLE_SYNONYMS,
+ config.getProperties(), false)) {
+ types = new String[] { "TABLE", "VIEW", "SYNONYM" };
+ } else {
+ types = new String[] { "TABLE", "VIEW" };
+ }
}
- private static final String[] TYPES = {"TABLE", "VIEW"};
-
public TableMetadata getTableMetadata(String name, String schema, String catalog, boolean isQuoted) throws HibernateException {
Object identifier = identifier(catalog, schema, name);
@@ -84,14 +119,14 @@
ResultSet rs = null;
try {
if ( (isQuoted && meta.storesMixedCaseQuotedIdentifiers())) {
- rs = meta.getTables(catalog, schema, name, TYPES);
+ rs = meta.getTables(catalog, schema, name, types);
} else if ( (isQuoted && meta.storesUpperCaseQuotedIdentifiers())
|| (!isQuoted && meta.storesUpperCaseIdentifiers() )) {
rs = meta.getTables(
StringHelper.toUpperCase(catalog),
StringHelper.toUpperCase(schema),
StringHelper.toUpperCase(name),
- TYPES
+ types
);
}
else if ( (isQuoted && meta.storesLowerCaseQuotedIdentifiers())
@@ -100,11 +135,11 @@
StringHelper.toLowerCase(catalog),
StringHelper.toLowerCase(schema),
StringHelper.toLowerCase(name),
- TYPES
+ types
);
}
else {
- rs = meta.getTables(catalog, schema, name, TYPES);
+ rs = meta.getTables(catalog, schema, name, types);
}
while ( rs.next() ) {
Modified: core/branches/Branch_3_3_2_GA_CP/core/src/main/java/org/hibernate/tool/hbm2ddl/SchemaUpdate.java
===================================================================
--- core/branches/Branch_3_3_2_GA_CP/core/src/main/java/org/hibernate/tool/hbm2ddl/SchemaUpdate.java 2013-04-15 18:46:57 UTC (rev 21105)
+++ core/branches/Branch_3_3_2_GA_CP/core/src/main/java/org/hibernate/tool/hbm2ddl/SchemaUpdate.java 2013-04-16 16:21:45 UTC (rev 21106)
@@ -167,7 +167,7 @@
log.info( "fetching database metadata" );
connectionHelper.prepare( true );
connection = connectionHelper.getConnection();
- meta = new DatabaseMetadata( connection, dialect );
+ meta = new DatabaseMetadata( connection, dialect, configuration );
stmt = connection.createStatement();
}
catch ( SQLException sqle ) {
Modified: core/branches/Branch_3_3_2_GA_CP/core/src/main/java/org/hibernate/tool/hbm2ddl/SchemaValidator.java
===================================================================
--- core/branches/Branch_3_3_2_GA_CP/core/src/main/java/org/hibernate/tool/hbm2ddl/SchemaValidator.java 2013-04-15 18:46:57 UTC (rev 21105)
+++ core/branches/Branch_3_3_2_GA_CP/core/src/main/java/org/hibernate/tool/hbm2ddl/SchemaValidator.java 2013-04-16 16:21:45 UTC (rev 21106)
@@ -129,7 +129,7 @@
log.info( "fetching database metadata" );
connectionHelper.prepare( false );
connection = connectionHelper.getConnection();
- meta = new DatabaseMetadata( connection, dialect, false );
+ meta = new DatabaseMetadata( connection, dialect, configuration, false );
}
catch ( SQLException sqle ) {
log.error( "could not get database metadata", sqle );
11 years, 9 months
[hibernate/hibernate-orm] c68cca: HHH-8187 - Integrate JPA Metamodel with hibernate ...
by GitHub
Branch: refs/heads/metamodel
Home: https://github.com/hibernate/hibernate-orm
Commit: c68cca809aa546aab3370c1939ccb1f1ea67e108
https://github.com/hibernate/hibernate-orm/commit/c68cca809aa546aab3370c1...
Author: Strong Liu <stliu(a)hibernate.org>
Date: 2013-04-15 (Mon, 15 Apr 2013)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/jpa/metamodel/internal/builder/MetamodelBuilder.java
M hibernate-entitymanager/src/test/java/org/hibernate/jpa/test/criteria/ParameterTest.java
M hibernate-entitymanager/src/test/java/org/hibernate/jpa/test/criteria/TreatKeywordTest.java
M hibernate-entitymanager/src/test/java/org/hibernate/jpa/test/criteria/basic/AggregationResultTest.java
M hibernate-entitymanager/src/test/java/org/hibernate/jpa/test/criteria/components/ComponentCriteriaTest.java
M hibernate-entitymanager/src/test/java/org/hibernate/jpa/test/transaction/SynchronizationTypeTest.java
Log Message:
-----------
HHH-8187 - Integrate JPA Metamodel with hibernate new metamodel
11 years, 9 months