-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: Am I really too dumb to understand the extra-import metatag?
PostPosted: Wed Sep 21, 2005 4:07 pm 
Beginner
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>


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 22, 2005 2:51 pm 
Beginner
Beginner

Joined: Fri Jul 15, 2005 12:26 pm
Posts: 37
Anyone have any clue why this doesn't work?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 22, 2005 4:48 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
why dont you just use the full classname in implements ?

the tool will autoimport it

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 22, 2005 6:02 pm 
Beginner
Beginner

Joined: Fri Jul 15, 2005 12:26 pm
Posts: 37
Hah! Awesome! That completely worked. It's all so clear to me now...


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.