Hibernate配置文件中的schema的应用

hibernate-mapping package="com.htsoft.est.model.data">
    <class name="CircuitSubstation" table="C_CIRCUIT_SUBSTATION" schema="PWTZ2">
       <id name="id"   column="D_ID" type="java.lang.Long">
             <generator class="sequence">
    <param name="sequence">S_C_CIRCUIT_SUBSTATION</param>
   </generator>
        </id>
        <property name="substationId" type="long">
            <column name="D_SUBSTATIONID" length="16" />
        </property>
<property name="circuitId" type="long">
            <column name="D_CIRCUITID" length="16" />
        </property>
    </class>
</hibernate-mapping>

 
schema一般用在Oracle数据库中,针对不同的用户User而言的。Schema是一种模式,不同的用户对应不同的schema.

猜你喜欢

转载自840536410.iteye.com/blog/1985764