--- [EMAIL PROTECTED] wrote:

> I have a hibernate application and I am having a
> problem with a map. I have
> a
> class, Transaction, with a subclass
> PieceTransaction, and I want it to have
> something like the following xml 1). I have the java
> source code below, 2).
> But I get an exception when I run the ant job to
> create the xml from the
> comments, see 3). Is there a problem with the java
> code, or did I do
> something
> else wrong? If you need any more information, please
> let me know.

OK, for a first you are on a wrong list.  This list is
for xdoclet core, and your problem is clearly related
to hibernate plugin -> correct list ist
xdoclet-plugins-intertest

>
===================================================================
> 
>       /**
>        * @hibernate.map
>        * table="facade_line"
>        * lazy="false"
>        * cascade="all,delete-orphan"
>        * @hibernate.key
>        * column="id_transaction"
>        * foreign-key="fk_facade_transaction"
>        * @hibernate.composite-map-key
>        * class="com.parvia.account.FacadeKey"
>        * @hibernate.key-property
>        * type="string"
>        * column="edifice_name"
>        * length="20"
>        * @hibernate.key-property
>        * type="string"
>        * column="facade_name"
>        * length="40"
>        * @hibernate.key-property
>        * type="int"
>        * column="bag_number"
>        * @hibernate.element
>        * column="count"
>        * type="int"
>      */
>       public Map getFacadeLines() {
>               return facadeLines;
>       }

Look at the documentation of @hibernate.key-property
tag:

http://xdoclet.codehaus.org/HibernateTags#HibernateTags-hibernate.keyproperty

This tag is alowed only once  on element
>   [xdoclet] WARNING: Caught exception evaluating:
> [EMAIL PROTECTED]
> Reason:
> java.lang.RuntimeException: more than one top leve
> l property deined in class PieceTransaction for
> property facadeLines
>   [xdoclet] java.lang.RuntimeException: more than
> one top level property
> deined in class PieceTransaction for property
> facadeLines

...  as our tag validation clearly said 

regards,

----[ Konstantin Pribluda http://www.pribluda.de ]----------------
Still using XDoclet 1.x?  XDoclet 2 is released and of production quality.
check it out: http://xdoclet.codehaus.org

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Reply via email to