【正文】
doublecheck the decisions Eclipse is making. (Of course, if it gets anything wrong, you can always go back and fix the project properties, but I tend to find it disconcerting to be greeted by a ton of errors and warnings immediately if there is a library missing or something.) In this case, my caution was unnecessary. Eclipse figured out exactly how the directory was structured and intended to be used, and found all of the thirdparty libraries I had downloaded and installed in order to enable Hibernate and the HSQLDB database engine to run. (A detailed walkthrough of this process is the bulk of Chapter 1 of my Developer39。s be sure to put it at the toplevel src directory alongside the properties version, for consistency. Fill in the rest of the information requested by the wizard to match the properties version of the configuration, as shown in Figure 14. Notice that, unlike when using Ant to control the execution of Hibernate (which was the approach used in the Developer39。t need to put anything in your source code to request that the corresponding mapping gets set up. For now, let39。ll need to replicate the contents of into a new file. On the bright side, this gives us our first opportunity to play with a feature of Hibernate Synchronizer, the configuration file wizard. Choose File New Other, click the newly available Hibernate category, pick Hibernate Configuration File, and click Next.When the wizard starts up, the directory it offers to put the file into depends on the file you39。ll be looking at the examples as they exist in Chapter 3, which is the sample chapter available online. You can also download the source for all of the examples from the book39。re using a onebutton mouse) in the Feature Updates view and choose New Site Bookmark. Figure 1. Adding the Hibernate Synchronizer plugin site to the Update ManagerIn the resulting dialog, enter the URL for the version of the plugin that you need. The URL to be entered depends on your Eclipse version:Eclipse : Eclipse 3: You also need to assign a name for the new bookmark. Hibernate Synchronizer makes a lot of sense. Once you click Finish, the new bookmark will appear in the Feature Updates actually install the plugin, click on the disclosure triangle to the left of the bookmark, and again on the next one that appears inside of it, until you can see the icon for the plugin itself. When you click on that, the Preview view will update to show you an interface that allows you to install the Install Now to actually install it, and let Eclipse walk you through the TradeOffs, below, for some discussion about this license agreement. You may wish to read it carefully before deciding to use Hibernate Synchronizer in a project of your own. I think it39。s New menu that provides wizards for creating Hibernate configuration and mapping files, and adds contextual menu entries in the package explorer and in other appropriate places, providing easy access to relevant Hibernate operations.OK, enough abstract description, time to get down to the practical stuff! After all, you were already probably interested in this, or you wouldn39。s very helpful. So I became curious about whether anyone had written plugins to work with Hibernate, since I39。在此向軟件學(xué)院全體老師表示深深的感謝和崇高的敬意。本設(shè)計(jì)在吳銳老師的悉心指導(dǎo)和嚴(yán)格要求下完成,從課題選擇、方案論證到具體設(shè)計(jì)和調(diào)試,無(wú)不凝聚著吳老師的心血和汗水。當(dāng)用戶名和密碼都正確但驗(yàn)證碼錯(cuò)誤時(shí)會(huì)提醒驗(yàn)證碼錯(cuò)誤。硬件測(cè)試、網(wǎng)絡(luò)測(cè)試可以根據(jù)具體的性能指標(biāo)來(lái)進(jìn)行。 } }else{ forward = loginFail。 String forward = new String()。 } }else{ forward = fail。 String forward = new String()。 if (!(checkCode)) { (result, 驗(yàn)證碼不正確!)。 學(xué)期注冊(cè)表 (Enroll) 字段名描述數(shù)據(jù)類型數(shù)據(jù)長(zhǎng)度NULLPrimarykeyStu_Id學(xué)號(hào)char20NYDor_Id寢室char10NFEnr_Date注冊(cè)日期datetime10YNEnr_Price所交費(fèi)用char10YNEnr_Sta交費(fèi)情況char10YNEnr_Year所交年度datetime10YY(8)學(xué)生財(cái)產(chǎn)表:登記學(xué)生物品情況。 FStu_Name姓名char10YNStu_Sex性別char10YNDor_Id寢室號(hào)char10NFStu_Enr入學(xué)日期datetime10Y N 本管理系統(tǒng)共用到八個(gè)表:用戶表(LoginIn)、學(xué)生基本情況表(Student)、寢室表(Dorm)、員工表(Employee)、物品出入樓表(Goodsmove)、樓房表(House)、學(xué)生財(cái)產(chǎn)表(Riches)、學(xué)期注冊(cè)表 (Enroll),各表之間均有一定的關(guān)系,可以進(jìn)行關(guān)聯(lián)。(4) 宿舍繳費(fèi)情況:查詢并打印已交清或未交清住宿費(fèi)的學(xué)生信息。(1) 學(xué)生基本信息修改:實(shí)現(xiàn)系統(tǒng)管理人員對(duì)學(xué)生基本信息情況所作的添加、修改、刪除。 樓棟管理模塊 樓棟管理模塊包括:樓房管理和宿舍管理兩個(gè)大的部分。6)退出:退出普通管理員界面返回到登錄界面。普通管理人員具有首頁(yè),學(xué)生管理,宿舍管理,財(cái)產(chǎn)報(bào)修,修改密碼,退出六個(gè)部分。下面將具體進(jìn)行介紹。連接查詢可以分為等值連接查詢、非等值連接查詢、自身連接查詢等。在這種情況下就需要在SELECT語(yǔ)句中加入條件以選擇數(shù)據(jù)行,這時(shí),就用到WHERE子句 。在MySQL中,使用的是TSQL語(yǔ)言,TSQL是ANSI SQL的加強(qiáng)版語(yǔ)言,它提供了標(biāo)準(zhǔn)的SQL 命令,由于SQL語(yǔ)言功能豐富、語(yǔ)言簡(jiǎn)潔,使用方法靈活,倍受用戶和計(jì)算機(jī)業(yè)界的青睞,被眾多的計(jì)算機(jī)公司和軟件公司采用。但Java Servlet也不是沒(méi)有缺點(diǎn),和傳統(tǒng)的CGI、ISAPI、NSAPI方式相同,Java Servlet是利用輸出HTML語(yǔ)句來(lái)實(shí)現(xiàn)動(dòng)態(tài)網(wǎng)頁(yè)的。例如Java程序可以每隔一定時(shí)間讀取某結(jié)點(diǎn)提供的最新數(shù)據(jù),并以圖表的形式顯示出來(lái)。十年來(lái),數(shù)據(jù)庫(kù)管理系統(tǒng)已從專用的應(yīng)用程序包發(fā)展成為通用系統(tǒng)軟件??旖莅粹o的創(chuàng)建也是非常需要的,以方便用戶操作?! ?4)系統(tǒng)應(yīng)提供學(xué)生在校期間物品出入宿舍樓的詳細(xì)情況登記。學(xué)生宿舍管理系統(tǒng)既可存儲(chǔ)所有的宿舍管理的信息,而且僅需要一名宿舍管理員對(duì)此系統(tǒng)進(jìn)行操作,節(jié)省大量人力,同時(shí)還可以迅速查到所需信息。采用計(jì)算機(jī)管理已成為學(xué)校管理科學(xué)化和現(xiàn)代化的重要標(biāo)志,也將決定著一個(gè)學(xué)校的層次和位置。滿足了學(xué)校對(duì)學(xué)校宿舍管理的基本需求。系統(tǒng)主要包括登錄模塊、樓棟管理模塊、人員管理模塊、收費(fèi)管理模塊、維修管理模塊、系統(tǒng)維護(hù)模塊等。在計(jì)算機(jī)飛速發(fā)展的今天,將計(jì)算機(jī)這一信息處理利器應(yīng)用于學(xué)校的日常管理已是勢(shì)必所然,將各類管理系統(tǒng)應(yīng)用到學(xué)校的各項(xiàng)管理中,這將為學(xué)校管理帶來(lái)前所未有的改變,以及意想不到的效益,同時(shí)也會(huì)為學(xué)校全面建設(shè)及飛速發(fā)展提供無(wú)限潛力?,F(xiàn)在我國(guó)的各學(xué)校學(xué)生宿舍的管理水平還停留在紙介質(zhì)的基礎(chǔ)上,這樣的機(jī)制已經(jīng)不能適應(yīng)時(shí)代的發(fā)展,因?yàn)樗速M(fèi)了許多人力和物力,在信息時(shí)代這種傳統(tǒng)的管理方法必然被計(jì)算機(jī)為基礎(chǔ)的信息管理所取代。 (3)系統(tǒng)應(yīng)提供學(xué)生每學(xué)期的注冊(cè)及學(xué)生的離校處理。盡可能的為用戶的錄入、查詢等功能操作提供方便?!? 數(shù)據(jù)庫(kù)是數(shù)據(jù)管理的最新技術(shù),是計(jì)算機(jī)科學(xué)的重要分支。(2) JAVA語(yǔ)言的網(wǎng)絡(luò)運(yùn)用Java程序可以獲取網(wǎng)絡(luò)上結(jié)點(diǎn)的圖象、聲音、HTML文檔及文本等資源,并可以對(duì)獲得的資源進(jìn)行處理。由于Java Servlet內(nèi)部是以線程方式提供服務(wù),不必對(duì)于每個(gè)請(qǐng)求都啟動(dòng)一個(gè)進(jìn)程,并且利用多線程機(jī)制可以同時(shí)為多個(gè)請(qǐng)求服務(wù),因此Java Servlet效率非常高。(5)MySQL知識(shí)介紹 MySQL 是Microsoft 公司推出的MySQL數(shù)據(jù)庫(kù)管理系統(tǒng),它增加了許多更先進(jìn)的功能,具有使用方便、可伸縮性好、與相關(guān)軟件集成度高等優(yōu)點(diǎn),應(yīng)用程序的操作系統(tǒng)支持所有Windows版本。當(dāng)然用戶在查詢數(shù)據(jù)庫(kù)時(shí)往往并不需要了解全部信息,而只需要其中一部分滿足某些條件的信息??梢允褂眠B接查詢來(lái)實(shí)現(xiàn)多個(gè)表的連接。每個(gè)模塊將實(shí)現(xiàn)不同的功能。5)退出系統(tǒng):點(diǎn)擊退出系統(tǒng)返回到登錄界面(2)普通管理員登錄:實(shí)現(xiàn)普通管理人員登錄。5)修改密碼:通過(guò)原始密碼可以更改現(xiàn)在的密碼。5)退出:退出管理界面返回登錄界面 ?。?)學(xué)生離校管理:實(shí)現(xiàn)學(xué)生畢業(yè)離校處理,注銷該學(xué)生信息。 信息修改模塊 信息修改模塊包括:學(xué)生基本信息修改、員工基本信息修改、個(gè)人財(cái)物信息修改三個(gè)大的功能。(3) 宿舍信息:查詢并打印某個(gè)宿舍的詳細(xì)住宿情況。 學(xué)生基本情況表(Student)字段名描述數(shù)據(jù)類型數(shù)據(jù)長(zhǎng)度NULLPrimarykeyStu_Id學(xué)號(hào)char20NY and 樓房表(House)字段名描述數(shù)據(jù)類型數(shù)據(jù)長(zhǎng)度NULLPrimarykeyHou_Id樓房號(hào)char20NYHou_Num樓層數(shù)int10YNHou_Rom房間數(shù)int10YNHou_Peo應(yīng)住