[hibernate/hibernate-orm] 90cabb: HHH-12135 - Support for AttributeConverters as CDI...
by GitHub
Branch: refs/heads/master
Home: https://github.com/hibernate/hibernate-orm
Commit: 90cabb43ad8b186d73cb6b310fb2fd6774ffe44f
https://github.com/hibernate/hibernate-orm/commit/90cabb43ad8b186d73cb6b3...
Author: Steve Ebersole <steve(a)hibernate.org>
Date: 2017-12-15 (Fri, 15 Dec 2017)
Changed paths:
A hibernate-core/src/main/java/org/hibernate/boot/AttributeConverterInfo.java
M hibernate-core/src/main/java/org/hibernate/boot/MetadataBuilder.java
R hibernate-core/src/main/java/org/hibernate/boot/internal/AttributeConverterDescriptorImpl.java
R hibernate-core/src/main/java/org/hibernate/boot/internal/AttributeConverterDescriptorNonAutoApplicableImpl.java
R hibernate-core/src/main/java/org/hibernate/boot/internal/AttributeConverterManager.java
M hibernate-core/src/main/java/org/hibernate/boot/internal/InFlightMetadataCollectorImpl.java
M hibernate-core/src/main/java/org/hibernate/boot/internal/MetadataBuilderImpl.java
A hibernate-core/src/main/java/org/hibernate/boot/model/convert/internal/AbstractConverterDescriptor.java
A hibernate-core/src/main/java/org/hibernate/boot/model/convert/internal/AttributeConverterManager.java
A hibernate-core/src/main/java/org/hibernate/boot/model/convert/internal/AutoApplicableConverterDescriptorBypassedImpl.java
A hibernate-core/src/main/java/org/hibernate/boot/model/convert/internal/AutoApplicableConverterDescriptorStandardImpl.java
A hibernate-core/src/main/java/org/hibernate/boot/model/convert/internal/ClassBasedConverterDescriptor.java
A hibernate-core/src/main/java/org/hibernate/boot/model/convert/internal/InstanceBasedConverterDescriptor.java
A hibernate-core/src/main/java/org/hibernate/boot/model/convert/package-info.java
A hibernate-core/src/main/java/org/hibernate/boot/model/convert/spi/AutoApplicableConverterDescriptor.java
A hibernate-core/src/main/java/org/hibernate/boot/model/convert/spi/ConverterAutoApplyHandler.java
A hibernate-core/src/main/java/org/hibernate/boot/model/convert/spi/ConverterDescriptor.java
A hibernate-core/src/main/java/org/hibernate/boot/model/convert/spi/JpaAttributeConverterCreationContext.java
M hibernate-core/src/main/java/org/hibernate/boot/model/process/internal/ManagedResourcesImpl.java
M hibernate-core/src/main/java/org/hibernate/boot/model/process/spi/ManagedResources.java
M hibernate-core/src/main/java/org/hibernate/boot/model/process/spi/MetadataBuildingProcess.java
M hibernate-core/src/main/java/org/hibernate/boot/model/source/internal/annotations/AnnotationMetadataSourceProcessorImpl.java
M hibernate-core/src/main/java/org/hibernate/boot/spi/AbstractDelegatingMetadataBuildingOptions.java
R hibernate-core/src/main/java/org/hibernate/boot/spi/AttributeConverterAutoApplyHandler.java
R hibernate-core/src/main/java/org/hibernate/boot/spi/AttributeConverterDescriptor.java
M hibernate-core/src/main/java/org/hibernate/boot/spi/InFlightMetadataCollector.java
M hibernate-core/src/main/java/org/hibernate/boot/spi/MetadataBuildingOptions.java
M hibernate-core/src/main/java/org/hibernate/cfg/AbstractPropertyHolder.java
M hibernate-core/src/main/java/org/hibernate/cfg/AttributeConverterDefinition.java
M hibernate-core/src/main/java/org/hibernate/cfg/CollectionPropertyHolder.java
M hibernate-core/src/main/java/org/hibernate/cfg/PropertyHolder.java
M hibernate-core/src/main/java/org/hibernate/cfg/annotations/SimpleValueBinder.java
M hibernate-core/src/main/java/org/hibernate/cfg/annotations/reflection/AttributeConverterDefinitionCollector.java
M hibernate-core/src/main/java/org/hibernate/cfg/annotations/reflection/XMLContext.java
M hibernate-core/src/main/java/org/hibernate/hql/internal/ast/tree/JavaConstantNode.java
M hibernate-core/src/main/java/org/hibernate/hql/internal/ast/tree/LiteralNode.java
M hibernate-core/src/main/java/org/hibernate/mapping/SimpleValue.java
M hibernate-core/src/main/java/org/hibernate/mapping/ToOne.java
M hibernate-core/src/main/java/org/hibernate/mapping/Value.java
A hibernate-core/src/main/java/org/hibernate/metamodel/model/convert/internal/JpaAttributeConverterImpl.java
A hibernate-core/src/main/java/org/hibernate/metamodel/model/convert/internal/NamedEnumValueConverter.java
A hibernate-core/src/main/java/org/hibernate/metamodel/model/convert/internal/OrdinalEnumValueConverter.java
A hibernate-core/src/main/java/org/hibernate/metamodel/model/convert/internal/StandardBasicValueConverter.java
A hibernate-core/src/main/java/org/hibernate/metamodel/model/convert/package-info.java
A hibernate-core/src/main/java/org/hibernate/metamodel/model/convert/spi/BasicValueConverter.java
A hibernate-core/src/main/java/org/hibernate/metamodel/model/convert/spi/EnumValueConverter.java
A hibernate-core/src/main/java/org/hibernate/metamodel/model/convert/spi/JpaAttributeConverter.java
M hibernate-core/src/main/java/org/hibernate/resource/beans/internal/ManagedBeanRegistryDirectImpl.java
A hibernate-core/src/main/java/org/hibernate/resource/beans/spi/DirectInstantiationManagedBeanImpl.java
A hibernate-core/src/main/java/org/hibernate/resource/beans/spi/ProvidedInstanceManagedBeanImpl.java
M hibernate-core/src/main/java/org/hibernate/type/EnumType.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/converter/AttributeConverterMutabilityPlanImpl.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/converter/AttributeConverterSqlTypeDescriptorAdapter.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/converter/AttributeConverterTypeAdapter.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/java/AbstractTypeDescriptor.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/java/EnumJavaTypeDescriptor.java
M hibernate-core/src/main/java/org/hibernate/type/descriptor/java/JavaTypeDescriptor.java
R hibernate-core/src/test/java/org/hibernate/jpa/test/convert/ConversionAutoApplyTest.java
R hibernate-core/src/test/java/org/hibernate/jpa/test/convert/QueryTest.java
A hibernate-core/src/test/java/org/hibernate/test/cdi/converters/ConverterBean.java
A hibernate-core/src/test/java/org/hibernate/test/cdi/converters/MonitorBean.java
A hibernate-core/src/test/java/org/hibernate/test/cdi/converters/TheEntity.java
A hibernate-core/src/test/java/org/hibernate/test/cdi/converters/delayed/DelayedCdiHostedConverterTest.java
A hibernate-core/src/test/java/org/hibernate/test/cdi/converters/legacy/AddTenConverter.java
A hibernate-core/src/test/java/org/hibernate/test/cdi/converters/legacy/BigDecimalToStringConverter.java
A hibernate-core/src/test/java/org/hibernate/test/cdi/converters/legacy/ConversionAutoApplyTest.java
A hibernate-core/src/test/java/org/hibernate/test/cdi/converters/legacy/ConvertBetweenTest.java
A hibernate-core/src/test/java/org/hibernate/test/cdi/converters/legacy/Item.java
A hibernate-core/src/test/java/org/hibernate/test/cdi/converters/legacy/QueryTest.java
A hibernate-core/src/test/java/org/hibernate/test/cdi/converters/standard/CdiHostedConverterTest.java
M hibernate-core/src/test/java/org/hibernate/test/converter/AttributeConverterTest.java
M hibernate-core/src/test/java/org/hibernate/test/converter/BasicJodaTimeConversionTest.java
M hibernate-core/src/test/java/org/hibernate/test/converter/ExplicitDateConvertersTest.java
M hibernate-core/src/test/java/org/hibernate/test/converter/ExplicitEnumConvertersTest.java
M hibernate-core/src/test/java/org/hibernate/test/converter/SimpleConvertAnnotationTest.java
M hibernate-core/src/test/java/org/hibernate/test/converter/SimpleConvertsAnnotationTest.java
M hibernate-core/src/test/java/org/hibernate/test/converter/SimpleXmlOverriddenTest.java
M hibernate-core/src/test/java/org/hibernate/test/converter/XmlWithExplicitConvertAnnotationsTest.java
M hibernate-core/src/test/java/org/hibernate/test/converter/generics/ParameterizedAttributeConverterParameterTypeTest.java
R hibernate-core/src/test/java/org/hibernate/test/jpa/convert/AddTenConverter.java
R hibernate-core/src/test/java/org/hibernate/test/jpa/convert/BigDecimalToStringConverter.java
R hibernate-core/src/test/java/org/hibernate/test/jpa/convert/ConvertBetweenTest.java
R hibernate-core/src/test/java/org/hibernate/test/jpa/convert/Item.java
Log Message:
-----------
HHH-12135 - Support for AttributeConverters as CDI beans
initial work to get AttributeConverter support to be able to integrate with ManagedBeanRegistry. There is a lot of "infrastructure" changes because the old code assumed we could instantiate the converter as soon as we knew the class which precludes lookup in the registry later.
7 years
[hibernate/hibernate-orm] cb61bf: HHH-11259 - Improved CDI support including support...
by GitHub
Branch: refs/heads/master
Home: https://github.com/hibernate/hibernate-orm
Commit: cb61bfa52ff5178aba03331bd8982115310a052d
https://github.com/hibernate/hibernate-orm/commit/cb61bfa52ff5178aba03331...
Author: Chris Cranford <chris(a)hibernate.org>
Date: 2017-12-15 (Fri, 15 Dec 2017)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/jpa/event/internal/CallbackBuilderLegacyImpl.java
M hibernate-core/src/main/java/org/hibernate/jpa/event/internal/ListenerCallback.java
M hibernate-core/src/main/java/org/hibernate/resource/beans/internal/BeansMessageLogger.java
M hibernate-core/src/main/java/org/hibernate/resource/beans/internal/ManagedBeanRegistryCdiBuilder.java
M hibernate-core/src/main/java/org/hibernate/resource/beans/internal/ManagedBeanRegistryCdiDelayedImpl.java
M hibernate-core/src/main/java/org/hibernate/resource/beans/internal/ManagedBeanRegistryCdiExtendedImpl.java
M hibernate-core/src/main/java/org/hibernate/resource/beans/internal/ManagedBeanRegistryCdiStandardImpl.java
M hibernate-core/src/main/java/org/hibernate/resource/beans/internal/ManagedBeanRegistryDirectImpl.java
M hibernate-core/src/main/java/org/hibernate/resource/beans/package-info.java
M hibernate-core/src/main/java/org/hibernate/resource/beans/spi/AbstractManagedBeanRegistry.java
M hibernate-core/src/main/java/org/hibernate/resource/beans/spi/ManagedBean.java
M hibernate-core/src/main/java/org/hibernate/resource/beans/spi/ManagedBeanRegistry.java
M hibernate-core/src/main/java/org/hibernate/resource/beans/spi/ManagedBeanRegistryInitiator.java
Log Message:
-----------
HHH-11259 - Improved CDI support including support for other types of managed beans;
HHH-12133 - Create ManagedBeanRegistry and ManagedBean;
HHH-12134 - Convert entity listener CDI support to use ManagedBean/MenagedBeanRepository
Checkstyle fixes.
Commit: 173184e26d62a96df281093e6277da813bbcc22c
https://github.com/hibernate/hibernate-orm/commit/173184e26d62a96df281093...
Author: Chris Cranford <chris(a)hibernate.org>
Date: 2017-12-15 (Fri, 15 Dec 2017)
Changed paths:
M shared/config/checkstyle/checkstyle.xml
Log Message:
-----------
HHH-12176 - Relax the checkstyle requirement for file headers.
Compare: https://github.com/hibernate/hibernate-orm/compare/d0267a5445d8...173184e...
7 years
[hibernate/hibernate-ogm] 88e3d9: OGM-1344 Add test for bidirectional one-to-one on ...
by GitHub
Branch: refs/heads/master
Home: https://github.com/hibernate/hibernate-ogm
Commit: 88e3d91ab97e0e0cf347db353465ec58857c17bc
https://github.com/hibernate/hibernate-ogm/commit/88e3d91ab97e0e0cf347db3...
Author: Davide D'Alto <davide(a)hibernate.org>
Date: 2017-12-15 (Fri, 15 Dec 2017)
Changed paths:
A core/src/test/java/org/hibernate/ogm/backendtck/associations/recursive/Coach.java
A core/src/test/java/org/hibernate/ogm/backendtck/associations/recursive/TrainCoachesTest.java
Log Message:
-----------
OGM-1344 Add test for bidirectional one-to-one on the same entity type
Commit: be29b44b09126c9c991e6b1e22e2e9cf21f5c936
https://github.com/hibernate/hibernate-ogm/commit/be29b44b09126c9c991e6b1...
Author: Davide D'Alto <davide(a)hibernate.org>
Date: 2017-12-15 (Fri, 15 Dec 2017)
Changed paths:
M neo4j/src/main/java/org/hibernate/ogm/datastore/neo4j/remote/http/json/impl/Graph.java
Log Message:
-----------
OGM-1344 Add equals and hashcode to Graph class for http dialect
Commit: 6f231333b3632032a20680ff94458c0c3fadb72c
https://github.com/hibernate/hibernate-ogm/commit/6f231333b3632032a20680f...
Author: Davide D'Alto <davide(a)hibernate.org>
Date: 2017-12-15 (Fri, 15 Dec 2017)
Changed paths:
M neo4j/src/main/java/org/hibernate/ogm/datastore/neo4j/dialect/impl/BaseNeo4jEntityQueries.java
M neo4j/src/main/java/org/hibernate/ogm/datastore/neo4j/remote/bolt/dialect/impl/BoltNeo4jEntityQueries.java
M neo4j/src/main/java/org/hibernate/ogm/datastore/neo4j/remote/http/dialect/impl/HttpNeo4jEntityQueries.java
Log Message:
-----------
OGM-1344 Improve queries performance for getTuple() on Neo4j
The previous query could potentially expands all the nodes even if
unecessary.
As an example, this commit change the following query
MATCH (owner:ENTITY:Coach {number: 250})
OPTIONAL MATCH (owner) -[r*]->(emb:EMBEDDED)
RETURN owner, r
to
MATCH (owner:ENTITY:Coach {number: 250})
OPTIONAL MATCH (owner) -[r]->(emb:EMBEDDED)
OPTIONAL MATCH (emb) -[r2*]->(emb_2:EMBEDDED)
RETURN owner, r, emb, r2, emb_2
Commit: f4a6fcde8d1a988cecf70163271c83400baf66b8
https://github.com/hibernate/hibernate-ogm/commit/f4a6fcde8d1a988cecf7016...
Author: Davide D'Alto <davide(a)hibernate.org>
Date: 2017-12-15 (Fri, 15 Dec 2017)
Changed paths:
M neo4j/src/main/java/org/hibernate/ogm/datastore/neo4j/remote/bolt/dialect/impl/BoltNeo4jEntityQueries.java
Log Message:
-----------
OGM-1344 Use functional approach for the creation of the embedded nodes collection for a path
Compare: https://github.com/hibernate/hibernate-ogm/compare/f253c2943c3f...f4a6fcd...
7 years