<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>评论：基于注解与自动扫描的某些实体没被映射的原因之一</title>
	<atom:link href="http://blog.shoopman.org/2009/07/16/a-reason-about-the-problem-that-an-entity-is-not-mapped.html/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.shoopman.org/2009/07/16/a-reason-about-the-problem-that-an-entity-is-not-mapped.html</link>
	<description>Shoopman&#039;s Blog</description>
	<lastBuildDate>Fri, 30 Jul 2010 07:31:31 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>来自：yybean</title>
		<link>http://blog.shoopman.org/2009/07/16/a-reason-about-the-problem-that-an-entity-is-not-mapped.html/comment-page-1#comment-8</link>
		<dc:creator>yybean</dc:creator>
		<pubDate>Tue, 02 Mar 2010 03:17:07 +0000</pubDate>
		<guid isPermaLink="false">/2009/07/16/a-reason-about-the-problem-that-an-entity-is-not-mapped.html#comment-8</guid>
		<description>配置</description>
		<content:encoded><![CDATA[<p>配置</p>
]]></content:encoded>
	</item>
	<item>
		<title>来自：yybean</title>
		<link>http://blog.shoopman.org/2009/07/16/a-reason-about-the-problem-that-an-entity-is-not-mapped.html/comment-page-1#comment-7</link>
		<dc:creator>yybean</dc:creator>
		<pubDate>Tue, 02 Mar 2010 03:16:00 +0000</pubDate>
		<guid isPermaLink="false">/2009/07/16/a-reason-about-the-problem-that-an-entity-is-not-mapped.html#comment-7</guid>
		<description> 
 

    问题就在这个自动描述packagesToScan的配置上。如上的配置，Spring只会扫描到org.shoopman.entity这个包下的子包里的实体类，而直接放在这个包下的实体却没有描述。

    无奈，只好在新建一个org.shoopman.entity.common包，把Comment移到此包下。到此，问题解

你把配置改成     这样不就完了</description>
		<content:encoded><![CDATA[<p>问题就在这个自动描述packagesToScan的配置上。如上的配置，Spring只会扫描到org.shoopman.entity这个包下的子包里的实体类，而直接放在这个包下的实体却没有描述。</p>
<p>    无奈，只好在新建一个org.shoopman.entity.common包，把Comment移到此包下。到此，问题解</p>
<p>你把配置改成     这样不就完了</p>
]]></content:encoded>
	</item>
</channel>
</rss>
