從網上找了兩種方法,效率差不多,這裡貼出代碼供大家參考 實體類Data public class Data { private Long id ; private Long courseId ; private String content ; public Long getId() { return id; } public Data setId(Long id) { this.id = id;
今天從svn上取了項目之後,為它添加server的時候,出現Project facet Java version 6.0 is not supported. 上網搜了一下,找到以下辦法: 這個問題遇到過,解決方案是在項目的右鍵菜單中選擇【Properties】-【Project Facets】,修改Java的版本為你安裝的JDK的版本即可,如我的項目開發時是JDK 6.0(1.6)的,而我電腦裡的是5.0(1.5)的,所以我選擇5.0。查看JDK版本:
This is one of the best descriptions of how to use the Hibernate tools to reverse engineer a DB into ,hbm and .java files automatically. I will post the description here if it will ever disappear. Download the hibernate-tools jar. [i]
Java學習推薦書目 Posted by boyan on 2010-11-11 Leave a comment (5)Go to comments 一直有這麼個想法,列一下我個人認為在學習和使用Java過程中可以推薦一讀的書籍,給初學者或者想深入的朋友一些建議,協助成長。推薦的的都是我自己讀過,也會推薦一些朋友讀過並且口碑不錯的書籍。 一、基礎類 1、《Thinking in
WebService之基於REST機制的實現執行個體(Java版) REST是REpresentational State Transfer的縮寫(一般中文翻譯為具象狀態傳輸)。2000年Roy Fielding博士在他的博士論文“Architectural Styles and the Design of Network-based Software Architectures”《體繫結構與基於網路的軟體架構設計》中提出了REST。 REST是一種體繫結構,