[hibernate-issues] [Hibernate-JIRA] Created: (HHH-3136) Expose a method on the BytecodeProvider to detect enhanced fields

Emmanuel Bernard (JIRA) noreply at atlassian.com
Tue Feb 26 13:56:33 EST 2008


Expose a method on the BytecodeProvider to detect enhanced fields
-----------------------------------------------------------------

                 Key: HHH-3136
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-3136
             Project: Hibernate3
          Issue Type: New Feature
          Components: core
            Reporter: Emmanuel Bernard


In Hibernate Annotations
private static boolean mustBeSkipped(XProperty property, ExtendedMappings mappings) {
		//TODO make those hardcoded tests more portable (through the bytecode provider?)
		return property.isAnnotationPresent( Transient.class )
				|| "net.sf.cglib.transform.impl.InterceptFieldCallback".equals( property.getType().getName() )
				|| "org.hibernate.bytecode.javassist.FieldHandler".equals( property.getType().getName() );
	}

I need to filter out non transient fields added by the bytecode enhancement.
Today this is hardcoded which sucks.

This related to ANN-699

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the hibernate-issues mailing list