原创 八、BDB OneToOne
Bdb JE對複雜數據的存儲 (一)、OneToOne關係的存儲 我主要是通過每個人對應一個身份證號碼,來實現OneToOne,我在刪除人的時候我用到了級聯。 人類: @Entity public class Person
原创 java 讀寫文件
File("e:/1.xml", content); //System.out.println(sb); } catch (Exception e) {
原创 Oracle 導入導出
1、導出txt select * into outfile "d:/dataout.txt" fields terminated by "|" lines terminated by "\n" from export_test 2
原创 我的友情鏈接
51CTO博客開發
原创 十、ManyToOne的實現
BDB JE對複雜數據的儲存 (三)、ManyToOne關係的存儲 部門類: @Entitypublic class Department { @PrimaryKey int departmentId;
原创 mysql 截取字符串
update shoes_store set title=substring_index(title,',',1) 將title按逗號分割,1,代表取分割後的第一段,2,代表第二段,-1爲最後一段
原创 Apache Commons工具集簡介
Apache Commons包含了很多開源的工具,用於解決平時編程經常會遇到的問題,減少重複勞動。我選了一些比較常用的項目做簡單介紹。文中用了很多網上現成的東西,我只是做了一個彙總整理。 一、Commons BeanUtils http:
原创 java 反射 構造函數 參數
有一個叫A public class A{ public A(String param1,String param2){ } } -------------- 利用java反射機制,舉例如下: im
原创 linux mysql忘記密碼的多種解決方法
linux mysql忘記密碼的多種解決方法。 我的系統是ubuntu6.06,最近新裝好的mysql在進入mysql工具時,總是有錯誤提示: # mysql -uroot -p Enter password: ERROR 1
原创 集合操作的利器:CollectionUtils
使用 CollectionUtils 中四個方法之一執行集合操作.這四種分別是 union(),intersection();disjunction(); subtract(); 下列例子就是演示瞭如何使用上述四個方法處理兩個 Colle
原创 hpacucli 使用——HP Raid信息查看
[root@s13 ~]# uname -a Linux s13 2.6.9-42.ELsmp #1 SMP Wed Jul 12 23:32:02 EDT 2006 x86_64 x86_64 x86_64 GNU/Linux [roo
原创 九、BDB OneToMany
(二)、OneToMany關係的存儲 班級類: @Entity public class Classs { @PrimaryKey String classsId; @SecondaryKey(relate=Relations