middlegen r5:
i like tables being mappinged as
<hibernate-mapping>
<class
name="com.fjky.fzgs.hibernate.WsDjxx"
table="WS_DJXX"
>
<composite-id>
<key-property
name="nsrsbh"
column="NSRSBH"
type="java.lang.String"
length="20"
/>
<key-property
name="wspzxh"
column="WSPZXH"
type="java.lang.String"
length="15"
/>
</composite-id>
<property
name="wsdlDm"
type="java.lang.String"
column="WSDL_DM"
not-null="true"
length="2"
/>
<property
name="wszlDm"
type="java.lang.String"
column="WSZL_DM"
not-null="true"
length="5"
/>
<!-- associations -->
</class>
</hibernate-mapping>
it mappings like
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 2.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd" >
<hibernate-mapping>
<!--
Created by the Middlegen Hibernate plugin 2.1
http://boss.bekk.no/boss/middlegen/
http://www.hibernate.org/
-->
<class
name="com.fjky.hibernate.SbSbxx"
table="SB_SBXX"
>
<composite-id name="comp_id" class="com.fjky.hibernate.SbSbxxPK"> ------------------------------here I don't like other class for PK --------------- how to generate as obove? thanks
<key-property
name="pzxh"
column="PZXH"
type="java.lang.String"
length="16"
/>
<key-property
name="zsxmDm"
column="ZSXM_DM"
type="java.lang.String"
length="2"
/>
</composite-id>
<property
name="nsrsbh"
type="java.lang.String"
column="NSRSBH"
not-null="true"
length="20"
/>
</class>
</hibernate-mapping>