svnno****@sourc*****
svnno****@sourc*****
2009年 4月 4日 (土) 23:27:09 JST
Revision: 3109 http://svn.sourceforge.jp/view?root=jiemamy&view=rev&rev=3109 Author: j5ik2o Date: 2009-04-04 23:27:09 +0900 (Sat, 04 Apr 2009) Log Message: ----------- リファクタリング Modified Paths: -------------- charon/jiemamy-jpa-importer/trunk/src/main/java/org/jiemamy/composer/importer/meta/impl/EntityMetaReaderImpl.java -------------- next part -------------- Modified: charon/jiemamy-jpa-importer/trunk/src/main/java/org/jiemamy/composer/importer/meta/impl/EntityMetaReaderImpl.java =================================================================== --- charon/jiemamy-jpa-importer/trunk/src/main/java/org/jiemamy/composer/importer/meta/impl/EntityMetaReaderImpl.java 2009-04-04 14:24:36 UTC (rev 3108) +++ charon/jiemamy-jpa-importer/trunk/src/main/java/org/jiemamy/composer/importer/meta/impl/EntityMetaReaderImpl.java 2009-04-04 14:27:09 UTC (rev 3109) @@ -36,6 +36,7 @@ import org.jiemamy.composer.importer.meta.EntityMetaReaderContext; import org.jiemamy.composer.importer.utils.ClassLoaderUtil; import org.jiemamy.composer.importer.utils.ClassTraversal; +import org.jiemamy.composer.importer.utils.ClassUtil; import org.jiemamy.composer.importer.utils.CollectionsUtil; import org.jiemamy.composer.importer.utils.FileUtil; import org.jiemamy.composer.importer.utils.TraversalHandlerException; @@ -99,11 +100,11 @@ return; } try { - Class<?> entityClass = - ClassLoaderUtil.loadClass(classLoader, packageName + "." + shortClassName); + String entityClassName = ClassUtil.concatName(packageName, shortClassName); + Class<?> entityClass = ClassLoaderUtil.loadClass(classLoader, entityClassName); EntityMetaFactory factory = entityMetaReaderContext.getEntityMetaFactory(); EntityMeta entityMeta = factory.getEntityMeta(entityClass); - LOG.debug(LogMarker.DETAIL, packageName + "." + shortClassName); + LOG.debug(LogMarker.DETAIL, entityClassName); entityMetas.add(entityMeta); } catch (ClassNotFoundException e) { throw new TraversalHandlerException(e);