hibernate中怎么实现表间一对一,来提取数据 我认为你最好还是把基本的hibernate例子做做;至少有个基本得了解才做呀;要不然你们的项目怎么做走呢???就算做走了;我想也是很糟糕的哟; 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 就凭你上网的这点时间,就能把hibernate的文档看一边,轻轻松松的写出测试代码如果连测试代码都不想写,1,说明你懒,什么都想求别人帮助2,说明你做软件有问题,连基本的配置和测试的代码没写,也来做项目,笑话3,说明你根本没有仔细看hibernate的文档。认真的看的话,上面写的很清楚,怎么配置,怎么写代码。指出这点是指出你的问题究竟在哪,听者自便! 单表测试通过后,我写的一对一的映射,大家看看对不对?? 顺便问下,在后面的查询过程中是不是直接做join关联的查询???谢谢<class name="ccspc.dao.user" schema="TEST" table="USER"><id column="ID" name="user_id" type="long"><generator class="sequence"><param name="sequence">USER_ID_SEQ</param></generator></id><property column="NAME" length="50" name="user_name" not-null="true" type="string"/><property column="PASSWORD" length="50" name="user_password" not-null="true" type="string"/><property column="CORPID" length="50" name="question" not-null="true" type="long"/><one-to-one name="corpp" constrained="true"/><property column="TYPE" length="50" name="type" not-null="true" type="string"/></class><class name="ccspc.dao.corpp" schema="TEST" table="CORPP"><id column="ID" name="corp_id" type="long"><generator class="sequence"><param name="sequence">CORPP_ID_SEQ</param></generator></id><property column="NAME" length="50" name="corpp_name" not-null="true" type="string"/></class> 【再发一次】spring中用了Annotation和AOP之后的问题 Map jsp页面中取数据库内的值 Hibernate 表映射自动生成问题? Struts里面DispatchAction 参数为空时如何处理 JAVA小程序 在学习Spring中,请问有简单的用Spring的源码吗? 让我的音乐能够真确的播放吧 请教一个log4j的问题 求解啊啊啊 struts中 的 .do带参数 请教各位:我准备应聘Java与J2EE方面开发工程师,想知道常见的面试题,指个方向也可以的。谢谢
1,说明你懒,什么都想求别人帮助
2,说明你做软件有问题,连基本的配置和测试的代码没写,也来做项目,笑话
3,说明你根本没有仔细看hibernate的文档。认真的看的话,上面写的很清楚,怎么配置,
怎么写代码。指出这点是指出你的问题究竟在哪,听者自便!
<id column="ID" name="user_id" type="long">
<generator class="sequence">
<param name="sequence">USER_ID_SEQ</param>
</generator>
</id><property column="NAME" length="50" name="user_name" not-null="true" type="string"/>
<property column="PASSWORD" length="50" name="user_password" not-null="true" type="string"/>
<property column="CORPID" length="50" name="question" not-null="true" type="long"/>
<one-to-one name="corpp" constrained="true"/><property column="TYPE" length="50" name="type" not-null="true" type="string"/>
</class>
<class name="ccspc.dao.corpp" schema="TEST" table="CORPP">
<id column="ID" name="corp_id" type="long">
<generator class="sequence">
<param name="sequence">CORPP_ID_SEQ</param>
</generator>
</id><property column="NAME" length="50" name="corpp_name" not-null="true" type="string"/>
</class>