WEB开发网
开发学院软件开发Java Apache Geronimo 机器修理店应用示例,第 3 部分:... 阅读

Apache Geronimo 机器修理店应用示例,第 3 部分: EJB:Bean 管理的持久性和容器管理的持久性

 2010-04-16 00:00:00 来源:WEB开发网   
核心提示: 选择 “MachineShopDatabase” 旁边的 “Application” 链接,选择 “spareparts” 旁边的 “View Contents” 链接,Apache Geronimo

选择 “MachineShopDatabase” 旁边的 “Application” 链接。

选择 “spareparts” 旁边的 “View Contents” 链接。“spareparts” 表的内容应该会出现,这与图 1 相似。

清单 1. <machine-install-dir>/data/MachineShop-part3.sql 的部分清单

create table spareparts ( 
  partid integer primary key, 
  description varchar(40), 
  price integer, 
  horsepower integer 
); 
 
 
-- Sample data to initialize the database 
insert into spareparts values (100,'ABC Muffler',50,15); 
insert into spareparts values (101,'ABC Sport Muffler',75,25); 
insert into spareparts values (102,'ABC Air Filter',35,5); 
insert into spareparts values (103,'ABC Sport Air Filter',55,10); 
insert into spareparts values (104,'ABC Spark Plugs',25,10); 
insert into spareparts values (105,'ABC Sport Spark Plugs',35,15); 
 
insert into spareparts values (200,'DEF Turbo Kit',500,100); 
insert into spareparts values (201,'DEF Turbo Kit (Limited Edition)',1000,150); 
insert into spareparts values (202,'DEF Nitrous Kit (Commuter Edition)',1500,200); 
insert into spareparts values (203,'DEF Nitrous Kit (Racing Edition)',2000,250); 
 
insert into spareparts values (900,'XYZ Smoke Screen',5000,0); 
insert into spareparts values (901,'XYZ Thermo-optic camouflage',145000,0); 
insert into spareparts values (902,'XYZ Bulletproof Windows',6500,0); 
insert into spareparts values (903,'XYZ Ramming Kit (Traffic Edition)',12450,150); 
insert into spareparts values (904,'XYZ Chain Gun (roof-mounted)',45600,0); 
insert into spareparts values (905,'XYZ Missile Launcher (incl. 10 rockets)',85000,0); 

上一页  1 2 3 4 5 6 7 8 9  下一页

Tags:Apache Geronimo 机器

编辑录入:爽爽 [复制链接] [打 印]
赞助商链接