我认为你最好还是把基本的hibernate例子做做;至少有个基本得了解才做呀;要不然你们的项目怎么做走呢???就算做走了;我想也是很糟糕的哟;

解决方案 »

  1.   

    就凭你上网的这点时间,就能把hibernate的文档看一边,轻轻松松的写出测试代码如果连测试代码都不想写,
    1,说明你懒,什么都想求别人帮助
    2,说明你做软件有问题,连基本的配置和测试的代码没写,也来做项目,笑话
    3,说明你根本没有仔细看hibernate的文档。认真的看的话,上面写的很清楚,怎么配置,
    怎么写代码。指出这点是指出你的问题究竟在哪,听者自便!
      

  2.   

    单表测试通过后,我写的一对一的映射,大家看看对不对?? 顺便问下,在后面的查询过程中是不是直接做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>