/** * Check the user-defined entity mappings for a superclass * mapping for a given named class. If the user mappings exist, * remove them from the user list and return them * for inclusion in our generated mappings. * * @param userMappings The current user mapping set. * @param className The name of the class of interest. * @return Returns the superclass mapping for the named class, or * null if the class is not in the mapping set. */ private MappedSuperclass removeMappedSuperclass(final EntityMappings userMappings, final String className) { final MappedSuperclass mappedSuperclass; mappedSuperclass = userMappings.getMappedSuperclassMap().get(className); if (mappedSuperclass != null) { userMappings.getMappedSuperclassMap().remove(mappedSuperclass.getKey()); } return mappedSuperclass; }
/** * Check the user-defined entity mappings for a superclass * mapping for a given named class. If the user mappings exist, * remove them from the user list and return them * for inclusion in our generated mappings. * * @param userMappings The current user mapping set. * @param className The name of the class of interest. * @return Returns the superclass mapping for the named class, or * null if the class is not in the mapping set. */ private MappedSuperclass removeMappedSuperclass(final EntityMappings userMappings, final String className) { final MappedSuperclass mappedSuperclass; mappedSuperclass = userMappings.getMappedSuperclassMap().get(className); if (mappedSuperclass != null) { userMappings.getMappedSuperclassMap().remove(mappedSuperclass.getKey()); } return mappedSuperclass; }
/** * Check the user-defined entity mappings for a superclass * mapping for a given named class. If the user mappings exist, * remove them from the user list and return them * for inclusion in our generated mappings. * * @param userMappings * The current user mapping set. * @param className The name of the class of interest. * * @return Returns the superclass mapping for the named class, or * null if the class is not in the mapping set. */ private MappedSuperclass removeMappedSuperclass(EntityMappings userMappings, String className) { MappedSuperclass mappedSuperclass; mappedSuperclass = userMappings.getMappedSuperclassMap().get(className); if (mappedSuperclass != null){ userMappings.getMappedSuperclassMap().remove(mappedSuperclass.getKey()); } return mappedSuperclass; }