/** * Return the mapping for the given type, or null if the type is * persistence-aware. */ private static ClassMapping getMapping(MappingRepository repos, Class<?> cls, boolean validate) { // this will parse all possible metadata rsrcs looking for cls, so // will detect if p-aware ClassMapping mapping = repos.getMapping(cls, null, false); if (mapping != null) return mapping; if (!validate || cls.isInterface() || repos.getPersistenceAware(cls) != null) return null; throw new MetaDataException(_loc.get("no-meta", cls, cls.getClassLoader())); }
/** * Return the mapping for the given type, or null if the type is * persistence-aware. */ private static ClassMapping getMapping(MappingRepository repos, Class<?> cls, boolean validate) { // this will parse all possible metadata rsrcs looking for cls, so // will detect if p-aware ClassMapping mapping = repos.getMapping(cls, null, false); if (mapping != null) return mapping; if (!validate || cls.isInterface() || repos.getPersistenceAware(cls) != null) return null; throw new MetaDataException(_loc.get("no-meta", cls, cls.getClassLoader())); }
/** * Return the mapping for the given type, or null if the type is * persistence-aware. */ private static ClassMapping getMapping(MappingRepository repos, Class<?> cls, boolean validate) { // this will parse all possible metadata rsrcs looking for cls, so // will detect if p-aware ClassMapping mapping = repos.getMapping(cls, null, false); if (mapping != null) return mapping; if (!validate || cls.isInterface() || repos.getPersistenceAware(cls) != null) return null; throw new MetaDataException(_loc.get("no-meta", cls, cls.getClassLoader())); }
/** * Return the mapping for the given type, or null if the type is * persistence-aware. */ private static ClassMapping getMapping(MappingRepository repos, Class<?> cls, boolean validate) { // this will parse all possible metadata rsrcs looking for cls, so // will detect if p-aware ClassMapping mapping = repos.getMapping(cls, null, false); if (mapping != null) return mapping; if (!validate || cls.isInterface() || repos.getPersistenceAware(cls) != null) return null; throw new MetaDataException(_loc.get("no-meta", cls, cls.getClassLoader())); }
/** * Return the mapping for the given type, or null if the type is * persistence-aware. */ private static ClassMapping getMapping(MappingRepository repos, Class cls, boolean validate) { // this will parse all possible metadata rsrcs looking for cls, so // will detect if p-aware ClassMapping mapping = repos.getMapping(cls, null, false); if (mapping != null) return mapping; if (!validate || cls.isInterface() || repos.getPersistenceAware(cls) != null) return null; throw new MetaDataException(_loc.get("no-meta", cls)); }