ECLIPSE连接池里可以配置啊。文件自动生成。
解决方案 »
- 在页面输入框输入“<td></td>”、“<tr></tr>”等的严重bug
- mysql数据库中的longtext字段类型怎么用?
- clob字段问题
- struts验证框架的问题
- 找10个开发人会java。5000rmb到20000rmb每个月.
- web project配置log4j出错,求助!
- 请问在applet中如何校验XML?
- 关于JDBC访问ACCESS数据库的问题,找了半天不知道错误在哪,高手帮我看看。
- 看了几天的 struts 一般的简单代码能看明白了,但是还有个关键的问题没有搞清楚,谁来指点下我
- "Untitled1.ejbgrpx": Spaces in the classpath may cause WebLogic EJBC utility to produce fatal compile errors.???
- portlet连接数据库???
- 关于继承和覆盖的问题~~~~~~~
Customer和Lifetests一对一:在Customer的映射文件里:<one-to-one
name="lifeTests"
class="com.cafuc.module.Lifetests"
cascade="all"/>在Lifetests配置文件里:1、首先对ID进行配置:
<id name="id" column="id" type="long">
<generator class="foreign">
<param name="property">customer</param>
</generator>
</id>2、<one-to-one>配置<one-to-one
name="customer"
class="Customer"
constrained="true"
/>3、数据库中lifetests表的主键id,你千万别设置成自增,可设置为0,否则会报错!
楼主好运!