private void init ( String xmlPath ) throws MalformedURLException , IOException { XML xml = new XML ( true , xmlPath ) ; if ( ! xml . isInheritedMapped ( configuredClass ) ) Error . classNotMapped ( configuredClass ) ; for ( Class < ? > classe : getClasses ( xml ) ) { relationalManyToOneMapper . put ( classe . getName ( ) , new JMapper ( configuredClass , classe , ChooseConfig . DESTINATION , xmlPath ) ) ; relationalOneToManyMapper . put ( classe . getName ( ) , new JMapper ( classe , configuredClass , ChooseConfig . SOURCE , xmlPath ) ) ; } }
This method initializes relational maps starting from XML .