go4it

just do it

2009年2月20日

DB4O学习(七)--继承关联

摘要: 1.继承保存// C# & JAVA Employee e1 = new Employee("Michael", "1234", "michael", 101, "10/5/1975"); Manager m1 = new Manager("Sue", "9876", "sue", 102, "3/8/1982"); CasualEmployee c1 = new CasualEmployee("... 阅读全文

posted @ 2009-02-20 09:41 cxccbv 阅读(423) 评论(0) 推荐(0)

DB4O学习(六)—has-an关联

摘要: 1.总的类图: 2.java类public static void main(String[] args) { ObjectContainer db = null; try{ db = Db4o.openFile("person.yap"); Address a1 = new Address("1 First Street", "San Jose", "USA")... 阅读全文

posted @ 2009-02-20 08:58 cxccbv 阅读(651) 评论(0) 推荐(0)

导航