Other than that, if we are going to make some changes, I think of Field[] getPersistentFields( Class c ) instead of Field[] order( Field[] fa). boolean hasLazyLoadedAttributes( Class c ) could be removed. Support for immutable fields (
HHH-10370 Open ) boolean isImmutable( Field f ) should also be added. Another thing is boolean isId( Field f ) ... in essence, there are still some places inside the Enhancer that look for annotations, and all those should be replaced by calls to the context.
You mean "Class" and "Field" here in the generic way Luis Barreiro? I wonder if using the same simple name as java.lang.Class and java.lang.reflect.Field might be confusing? |