We can use class and exclude-unlisted-classes tags, in order to map classes from XML. If we write exclude-unlisted-classes without class mapping, it skips entity mapping it to this DB.
<class>A.B.C.ClassName</class>
<exclude-unlisted-classes>true</exclude-unlisted-classes>