Apache Geronimo 机器修理店应用示例,第 3 部分: EJB:Bean 管理的持久性和容器管理的持久性
2010-04-16 00:00:00 来源:WEB开发网选择 “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);
- ››apache设置域名绑定 以及绑定不起作用的排查
- ››apache rewrite将指定URL转向指定的几个服务器
- ››apache配置文件httpd.comf部分参数说明
- ››Apache+Mysql+PHP+phpMyAdmin+Mac OS X 10.7 Lion...
- ››apache+tomcat负载均衡_项目实例
- ››apache mysql php 源码编译使用
- ››Apache添加mod_aspdotnet.so支持ASP.NET配置指南
- ››Apache中改变php.ini的路径
- ››Apache2.2与Tomcat6整合及虚拟主机配置
- ››Apache+php+mysql在windows下的安装与配置图解
- ››Apache+Subversion完美结合,CentOS下实现版本控制...
- ››Apache HTTPServer2.2.16 发布
更多精彩
赞助商链接