This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Enhanced Enhanced | |
allow_enhancement_as_proxy=true allow_enhancement_as_proxy=false Non-enhanced | |
Session#load: returns uninitialized, enhanced entity return enhanced entity that return entity | |
(entity/proxy (per HHH-11147) implements HibernateProxy that implements | |
not in PC HibernateProxy | |
yet) | |
LazyToOne: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Note: There are some details that need to be discussed. I will create a separate gist | |
for those details shortly. | |
POC: https://github.com/gbadner/hibernate-core/tree/HHH-10478-OperationContext | |
Design Overview | |
An OperationContext is intended to allow data important to an operation that is currently in progress, | |
that is needed in different areas of hibernate ORM code base. It allows data to be accessible without | |
having to pass it along as an argument from method to method to where it is needed. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Provides access to the appropriate {@link NamingStrategyDelegate}. | |
* | |
* @author Gail Badner | |
*/ | |
public interface NamingStrategyDelegator { | |
public void injectNamingStrategy(NamingStrategy namingStrategy); | |
/** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/hibernate-core/src/main/java/org/hibernate/cfg/Ejb3Column.java b/hibernate-core/src/main/java/org/hibernate/cfg/Ejb3Column.java | |
index c6a2856..c10a5ee 100644 | |
--- a/hibernate-core/src/main/java/org/hibernate/cfg/Ejb3Column.java | |
+++ b/hibernate-core/src/main/java/org/hibernate/cfg/Ejb3Column.java | |
@@ -34,6 +34,7 @@ import org.hibernate.annotations.ColumnTransformers; | |
import org.hibernate.annotations.Index; | |
import org.hibernate.annotations.common.reflection.XProperty; | |
import org.hibernate.cfg.annotations.Nullability; | |
+import org.hibernate.cfg.naming.ImplicitAttributeColumnNameSource; | |
import org.hibernate.internal.CoreMessageLogger; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Table names: | |
Primary table | |
Currently generated by: NamingStrategy.classToTableName(String className) | |
Input: LogicalPrimaryTableNameSource | |
Secondary table: | |
Element collection table name: | |
Inputs: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface Mappings { | |
... | |
/** | |
* Get the current naming strategy. | |
* | |
* @return The current naming strategy. | |
*/ | |
@deprecated | |
public NamingStrategy getNamingStrategy(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(11:26:53 AM) sebersole: i almost want to make it build the "domain model" first | |
(11:27:23 AM) sebersole: and use that to reference class names, attributes, etc | |
(11:27:34 AM) gbadner: +1 | |
(11:28:03 AM) gbadner: I understand now why you had Type.getClassName() and getClassReference() | |
(11:29:00 AM) gbadner: it would be really nice if o.h.metamodel.spi.Type encapsulated HibernateTypeDescription | |
(11:29:15 AM) sebersole: it cant always | |
(11:29:30 AM) sebersole: especially in the case of composites | |
(11:29:56 AM) sebersole: think the distinction between Embeddable and Embedded | |
(11:30:13 AM) sebersole: Type would be the Embeddable | |
(11:30:28 AM) sebersole: HibernateTypeDescription would be the Embedded |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
org.hibernate.test.cid.CompositeIdWithGeneratorTest fails in master because new metamodel cannot handle an IdentityGenerator w/ more than one column. (was changed to IdentifierGenerator on metamodel branch). | |
org.hibernate.test.propertyref.basic.BasicPropertiesTest fails on master; not in metamodel branch. | |
Tests that extend BaseUnitTestCase (and not BaseCoreFunctionalTestCase) that explicitly build Configuration (requires merging changes to testing code from metamodel branch). For now, they throw NotYetImplementedException: | |
- org.hibernate.test.annotations.access.xml.XmlAccessTest | |
- org.hibernate.test.annotations.id.JoinColumnOverrideTest | |
- org.hibernate.test.annotations.id.sequences.JoinColumnOverrideTest | |
- org.hibernate.test.annotations.uniqueconstraint.UniqueConstraintValidationTest | |
- org.hibernate.test.cfg.cache.CacheConfigurationTest | |
- org.hibernate.test.nationalized.SimpleNationalizedTest |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -r hibernate-core/src/main/java/org/hibernate/id/SelectGenerator.java ../hibernate-orm-metamodel-exact/hibernate-core/src/main/java/org/hibernate/id/SelectGenerator.java | |
26d25 | |
< | |
37a37 | |
> import org.hibernate.engine.spi.ValueInclusion; | |
84c84,85 | |
< if ( persister.getEntityMetamodel().isNaturalIdentifierInsertGenerated() ) { | |
--- | |
> ValueInclusion inclusion = persister.getPropertyInsertGenerationInclusions() [ naturalIdPropertyIndices[0] ]; | |
> if ( inclusion != ValueInclusion.NONE ) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
commit 8fe5460ec03942e974d4aae7d9060e20bab7f990 | |
Author: Steve Ebersole <[email protected]> | |
Date: Sun Nov 24 20:07:37 2013 -0600 | |
HHH-8741 - More checkstyle cleanups | |
commit cd590470c0059981537e558a5ff6d114fd24df61 | |
Author: Steve Ebersole <[email protected]> | |
Date: Sun Nov 24 09:44:51 2013 -0600 |
NewerOlder