Hibernate version:
3.1beta1 version
Mapping documents:
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<class name="Table_1_1_3_2_dynamic" table="Table_1_1_3_2_1" lazy="true">
<composite-id name="id"
class="Table_1_1_3_2_dynamic$Id">
<key-property name="col_1_1_3_1" />
<key-property name="it_state"/>
</composite-id>
<property name="col_1_1_3_13" column="col_1_1_3_13" not-null="true"/>
<property name="col_1_1_3_14" column="col_1_1_3_14" not-null="true"/>
<join table="Table_1_1_3_2_2">
<key column="col_1_1_3_1"/>
<key column="it_state"/>
<property name="col_1_1_3_66" column="col_1_1_3_66"/>
<property name="col_1_1_3_67" column="col_1_1_3_67"/>
</join>
<join table="Table_1_1_3_2_3">
<key column="col_1_1_3_1"/>
<key column="it_state"/>
<property name="col_1_1_3_115" column="col_1_1_3_115"/>
<property name="col_1_1_3_116" column="col_1_1_3_116"/>
</join>
</class>
</hibernate-mapping>
Sir ,I find hibernate can't support comsiteid for one class mapping some table . i have some table
Table_1_1_3_2_1 [col_1_1_3_1,it_state,col_1_1_3_13]
Table_1_1_3_2_2[col_1_1_3_1,it_state,col_1_1_3_66]
Table_1_1_3_2_3[col_1_1_3_1,it_state,col_1_1_3_116]
col_1_1_3_1,it_state is primary key !
now i want one class mapping some table
example SQL: select a.col_1_1_3_1,a.it_state ,a.col_1_1_3_13,b.col_1_1_3_66,c.col_1_1_3_116 from Table_1_1_3_2_1 a inner join Table_1_1_3_2_2 b a.col_1_1_3_1=b.col_1_1_3_1 and a.it_state =b.it_state inner join Table_1_1_3_2_3 c a.col_1_1_3_1=c.col_1_1_3_1 and a.it_state =c.it_state
but 3.0 support it !this is a commonly apply for database operation,so do you intend slove this problem?
|