--- Jim Bruno Goldberg <[EMAIL PROTECTED]>
wrote:
>
> Thanks. I try it with the follow lines:
>
>
> /**
> * @hibernate.list table="teste2"
> cascade="delete"
> * @hibernate.collection-key column="enterprise"
> * @hibernate.collection-one-to-many
> column="teste'
> class="adama.supplier.SupplierSegment"
> */
> public List getSegments() {
> return segments;
> }
>
>
>
> And got a big:
>
> bernatedoclet] (XDocletMain.start
> 47 ) Executando
> <null/>
> [hibernatedoclet] Gerando mapeamentos do Hibernate
> para
> adama.supplier.Enterprise
> [hibernatedoclet] adama.supplier.Enterprise
> [hibernatedoclet] (TemplateEngine.invokeMethod
> 541 ) Invoking
> method failed:
>
xdoclet.modules.hibernate.HibernateTagsHandler.roleAttribute,
> line=3 of
> template file:
>
file:/yard/fluid/xdoclet/modules/hibernate/resources/hibernate-properties.xdt
> [hibernatedoclet]
> java.lang.reflect.InvocationTargetException
> [hibernatedoclet] at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
>
> Maybe a buggy version os hibernate-module? What is
> wrong in my code?
>
> Thanks for help. Again. ;)
do you really need @hibernate.list?
@hibernate.bag also returns list, and does not require
index column.
Anyway you are missing @hibernate.collection-index
( column which will be used to order your list values
)
and of course on the other side of realition you will
need @hibernate.many-to-one...
regards,
=====
----[ Konstantin Pribluda ( ko5tik ) ]----------------
Zu Verst�rkung meines Teams suche ich ab Sofort einen
Softwareentwickler[In] f�r die Festanstellung.
Arbeitsort: Mainz
Skills: Programieren, Kentnisse in OpenSource-Bereich
----[ http://www.pribluda.de ]------------------------
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
-------------------------------------------------------
This SF.net email is sponsored by Dice.com.
Did you know that Dice has over 25,000 tech jobs available today? From
careers in IT to Engineering to Tech Sales, Dice has tech jobs from the
best hiring companies. http://www.dice.com/index.epl?rel_code=104
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user