@Baachi use the ClassMetadata object to do what? I'm using it for get the AssociationMappings.