Beginner |
|
Joined: Fri Jul 15, 2005 12:26 pm Posts: 37
|
I've tried inherit=false and moving things around...I've tried importing java.*...My other meta attributes generate fine, but it refuses to add any extra imports...
Hibernate tools version 2.1
Is there, like...a typo...?
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 2.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-2.0.dtd">
<hibernate-mapping>
<class name="com.data.Invoice" table="INVOICE">
<meta attribute="extra-import">com.will.data.type.Identifiable</meta>
<meta attribute="implements">Identifiable</meta>
<id name="id" type="java.lang.Long" column="INV_INVOICE_ID">
<generator class="sequence">
<param name="sequence">SEQ_INVOICE</param>
</generator>
</id>
<property name="amountDue" column="INV_AMOUNT_DUE" type="java.lang.Long"/>
<property name="pastDueAmount" column="INV_PAST_DUE_AMOUNT" type="java.lang.Long"/>
<property name="invoiceDate" column="INV_INVOICE_DATE" type="timestamp"/>
<property name="paymentCredits" column="INV_PAYMENT_CREDITS" type="java.lang.Long"/>
<property name="memo" column="INV_MEMO" type="string" length="1000"/>
<property name="lastProcessDate" column="INV_LAST_PROCESS_DATE" type="timestamp"/>
<property name="processCount" column="INV_PROCESS_COUNT" type="java.lang.Long"/>
<property name="createDate" column="INV_CREATE_DATE" type="timestamp"/>
<property name="createBy" column="INV_CREATE_BY" type="string" length="255"/>
<property name="updateBy" column="INV_UPDATE_BY" type="string" length="255"/>
<property name="updateDate" column="INV_UPDATE_DATE" type="timestamp"/>
<property name="status" column="INV_STATUS" type="string" length="255"/>
<!-- Web subscription item could be null for old invoices...everything should have a web subscription -->
<many-to-one name="webSubscription" column="WEB_SUBSCRIPTION_ID" class="com.data.WebSubscription"/>
<many-to-one name="webSubscriptionItem" column="WSI_WEB_SUBSCRIPTION_ITEM_ID" class="com.data.WebSubscriptionItem"/>
<set name="transactionLogs" lazy="true" table="TRANSACTION_LOG">
<key column="INV_INVOICE_ID"/>
<one-to-many class="com.data.TransactionLog" />
</set>
<!-- Some agents have profile and previews items...ugh... -->
<set name="invoiceItems" lazy="true" table="INVOICE_ITEM">
<key column="INV_INVOICE_ID"/>
<one-to-many class="com.data.InvoiceItem" />
</set>
</class>
</hibernate-mapping>
|
|