private void addSource ( Object entity , Map < String , Object > values , EntityType entityType ) { Set < Attribute > attributes = entityType . getAttributes ( ) ; for ( Attribute attrib : attributes ) { if ( ! attrib . isAssociation ( ) ) { Object value = PropertyAccessorHelper . getObject ( entity , ( Field ) attrib . getJavaMember ( ) ) ; values . put ( ( ( AbstractAttribute ) attrib ) . getJPAColumnName ( ) , value ) ; } } }
Adds the source .