Description: ?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd" >
<hibernate-mapping package="com.qyg.news.model">
<class name="News" table="news" >
<id name="newsId" column="newsid">
<generator class="uuid.hex"/>
</id>
<property name="typeId" column="typeid"/>
<property name="newsTitle" column="newstitle" not-null="true"/>
<property name="newsContent" column="newscontent" not-null="true"/>
<property name="newsTime" column="newstime"/>
<many-to-one name="user" column="userid" class="User" not-null="true" lazy="false"/>
<set name="comments" inverse="true">
<key column="newsid" />
<one-to-many class="Comment" />
</set>
</class>
</hibernate-mapping>
To Search:
File list (Check if you may need any files):
message\.classpath
.......\.cvsignore
.......\.project
.......\.settings\org.eclipse.ltk.core.refactoring.prefs
.......\.settings
.......\.tomcatplugin
.......\src\applicationContext.xml
.......\...\com\qyg\news\common\BaseAction.java
.......\...\...\...\....\......\NewsHibernateDaoSupport.java
.......\...\...\...\....\......\StringUtils.java
.......\...\...\...\....\......\SystemConstant.java
.......\...\...\...\....\common
.......\...\...\...\....\dao\CommentDao.java
.......\...\...\...\....\...\impl\CommentDaoHibernate.java
.......\...\...\...\....\...\....\NewsDaoHibernate.java
.......\...\...\...\....\...\....\TypeDaoHibernate.java
.......\...\...\...\....\...\....\UserDaoHibernate.java
.......\...\...\...\....\...\impl
.......\...\...\...\....\...\NewsDao.java
.......\...\...\...\....\...\TypeDao.java
.......\...\...\...\....\...\UserDao.java
.......\...\...\...\....\dao
.......\...\...\...\....\exception\MyException.java
.......\...\...\...\....\exception
.......\...\...\...\....\model\Comment.java
.......\...\...\...\....\.....\News.java
.......\...\...\...\....\.....\Type.java
.......\...\...\...\....\.....\User.java
.......\...\...\...\....\model
.......\...\...\...\....\service\impl\NewsManagerImpl.java
.......\...\...\...\....\.......\impl
.......\...\...\...\....\.......\NewsManager.java
.......\...\...\...\....\service
.......\...\...\...\....\.truts\AddCommentAction.java
.......\...\...\...\....\......\AddNewsAction.java
.......\...\...\...\....\......\AddNewsInitAction.java
.......\...\...\...\....\......\authority\AuthorityInterceptor.java
.......\...\...\...\....\......\authority
.......\...\...\...\....\......\base\MyActionServlet.java
.......\...\...\...\....\......\base
.......\...\...\...\....\......\ProcessLoginAction.java
.......\...\...\...\....\......\ProcessRegistryAction.java
.......\...\...\...\....\......\ViewDetailAction.java
.......\...\...\...\....\......\ViewNewsAction.java
.......\...\...\...\....\......\ViewUserAction.java
.......\...\...\...\....\struts
.......\...\...\...\....\test\NewsDaoTest.java
.......\...\...\...\....\....\NewsManagerTest.java
.......\...\...\...\....\test
.......\...\...\...\....\web\AuthImg.java
.......\...\...\...\....\web
.......\...\...\...\news
.......\...\...\qyg
.......\...\com
.......\...\Comment.hbm.xml
.......\...\daoContext.xml
.......\...\News.hbm.xml
.......\...\resource.properties
.......\...\Type.hbm.xml
.......\...\User.hbm.xml
.......\src
.......\web\images\bg.jpg
.......\...\......\bg1.gif
.......\...\......\bg2.gif
.......\...\......\bodybg.jpg
.......\...\......\bottom.jpg
.......\...\......\css.css
.......\...\......\hibernate.png
.......\...\......\logo.jpg
.......\...\......\spring.gif
.......\...\......\struts.gif
.......\...\......\Thumbs.db
.......\...\images
.......\...\index.jsp
.......\...\WEB-INF\action-servlet.xml
.......\...\.......\applicationContext.xml
.......\...\.......\classes\applicationContext.xml
.......\...\.......\.......\com\qyg\news\common\BaseAction.class
.......\...\.......\.......\...\...\....\......\NewsHibernateDaoSupport$1.class
.......\...\.......\.......\...\...\....\......\NewsHibernateDaoSupport$2.class
.......\...\.......\.......\...\...\....\......\NewsHibernateDaoSupport$3.class
.......\...\.......\.......\...\...\....\......\NewsHibernateDaoSupport$4.class
.......\...\.......\.......\...\...\....\......\NewsHibernateDaoSupport.class
.......\...\.......\.......\...\...\....\......\StringUtils.class
.......\...\.......\.......\...\...\....\......\SystemConstant.class
.......\...\.......\.......\...\...\....\common
.......\...\.......\.......\...\...\....\dao\CommentDao.class
.......\...\.......\.......\...\...\....\...\impl\CommentDaoHibernate.class
.......\...\.......\.......\...\...\....\...\....\NewsDaoHibernate.class
.......\...\.......\.......\...\...\....\...\....\TypeDaoHibernate.class
.......\...\.......\.......\...\...\....\...\....\UserDaoHibernate.class
.......\...\.......\.......\...\...\....\...\impl
.......\...\.......\.......\...\...\....\...\NewsDao.class
.......\...\.......\.......\...\..