protected void initialize(Class<T> mappedClass) {
        this.mappedClass = mappedClass;
        this.mappedFields = new HashMap<String, Field>();
        this.mappedProperties = new HashSet<String>();

        Field fields[] = mappedClass.getFields();
        for (Field field : fields) {
            int mod = field.getModifiers();
            if (Modifier.isPublic(mod) && !Modifier.isStatic(mod)) {

                String fieldNameV1 = field.getName().toLowerCase();
                String fieldNameV2 = underscoreName(field.getName());
                String fieldNameV3 = underscoreNameR(field.getName());

                this.mappedFields.put(fieldNameV1, field);
                if (!fieldNameV2.equals(fieldNameV1)) {
                    this.mappedFields.put(fieldNameV2, field);
                }
                if (!fieldNameV3.equals(fieldNameV1) && !fieldNameV3.equals(fieldNameV2)) {
                    this.mappedFields.put(fieldNameV3, field);
                }
                this.mappedProperties.add(fieldNameV2);

                /*
                this.mappedFields.put(field.getName().toLowerCase(), field);
                String underscoredName = underscoreName(field.getName());
                if (!field.getName().toLowerCase().equals(underscoredName)) {
                    this.mappedFields.put(underscoredName, field);
                }
                this.mappedProperties.add(underscoredName);
                */
            }
        }
    }
protected void initialize(Class<T> mappedClass) {
        this.mappedClass = mappedClass;
        this.mappedFields = new HashMap<String, Field>();
        this.mappedProperties = new HashSet<String>();

        Field fields[] = mappedClass.getFields();
        for (Field field : fields) {
            int mod = field.getModifiers();
            if (Modifier.isPublic(mod) && !Modifier.isStatic(mod)) {

                String fieldNameV1 = field.getName().toLowerCase();
                String fieldNameV2 = underscoreName(field.getName());
                String fieldNameV3 = underscoreNameR(field.getName());

                this.mappedFields.put(fieldNameV1, field);
                if (!fieldNameV2.equals(fieldNameV1)) {
                    this.mappedFields.put(fieldNameV2, field);
                }
                if (!fieldNameV3.equals(fieldNameV1) && !fieldNameV3.equals(fieldNameV2)) {
                    this.mappedFields.put(fieldNameV3, field);
                }
                this.mappedProperties.add(fieldNameV2);

                
            }
        }
    }
protected void initialize ( Class < T > mappedClass ) { this . mappedClass = mappedClass ; this . mappedFields = new HashMap < String , Field > ( ) ; this . mappedProperties = new HashSet < String > ( ) ; Field fields [ ] = mappedClass . getFields ( ) ; for ( Field field : fields ) { int mod = field . getModifiers ( ) ; if ( Modifier . isPublic ( mod ) && ! Modifier . isStatic ( mod ) ) { String fieldNameV1 = field . getName ( ) . toLowerCase ( ) ; String fieldNameV2 = underscoreName ( field . getName ( ) ) ; String fieldNameV3 = underscoreNameR ( field . getName ( ) ) ; this . mappedFields . put ( fieldNameV1 , field ) ; if ( ! fieldNameV2 . equals ( fieldNameV1 ) ) { this . mappedFields . put ( fieldNameV2 , field ) ; } if ( ! fieldNameV3 . equals ( fieldNameV1 ) && ! fieldNameV3 . equals ( fieldNameV2 ) ) { this . mappedFields . put ( fieldNameV3 , field ) ; } this . mappedProperties . add ( fieldNameV2 ) ; /*
                this.mappedFields.put(field.getName().toLowerCase(), field);
                String underscoredName = underscoreName(field.getName());
                if (!field.getName().toLowerCase().equals(underscoredName)) {
                    this.mappedFields.put(underscoredName, field);
                }
                this.mappedProperties.add(underscoredName);
                */ } } }
Initialize the mapping metadata for the given class.
@param mappedClass the mapped class.
Initialize the mapping metadata for the given class .