飞机航线,机场,飞机都做成CMP,然后3个CMP直接建立关联。
解决方案 »
- java.sql.SQLException: JZ0P1: 意外的结果类型|| 调用过程报错
- spring3.0配置<aop:aspectj-autoproxy>总出错
- 集思广益,人多力量大,发表想法
- 关于liferay,请教个人发展前景
- 启动tomcat报这个错误
- struts2中添加了一个过虑器,就也问题了,进来看看吧
- SSH的诡异的空指针异常问题,会ssh的都知道
- 请问如何让Servlet运行起来?
- 使用WebSphere做应用服务器,Tomcat做为web服务器,servlet怎样访问EJB?
- Struts如何将action中的值通过form传到jsp中并显示出来?
- JBOSS难了我一周了,分不够可以再加
- 请教JDBC是否可以跨网段(路由器)访问数据库??
部署的时候在xml里说明
m_name varcharand the relationship between table 'planes' and 'manufactors' is from the foreign key of 'planes' by 'p_manufactor' as shown below:p_manufactor int references manufactors.m_idHow to deal with it if you think the manufactor is not so important in your application? Yes, do not wrap it as CMP, just make it a normal java class and access it through JDBC/SQL directly. So the CMP 'Plane' will have one property which is simply a int type for manufactor id. Or you can add one more helper property for the instance of class 'Manufactor', the normal class for the table 'manufactors', to let other objects access the Manufactor object but not the manufactor id directly.