It seems that your problem lies in use of 
typed collection. YOu are using XDoclet 1.x
,  and I'm not sure its parser ( xjavadoc ) 
supports those java-5 features correctly. 

As you are using hibernate module you option would
be to upgrade to XDoclet-2 ( which uses qdox source
parser which is known to work with java-5 features ) 

See:
http://xdoclet.codehaus.org/
( you will have more fun with it if you use maven 2 )

regads, 
--- dr_pompeii <[EMAIL PROTECTED]> wrote:

> 
> hi guys
> 
> see this  class Articulo
> 
> among a lot of variables, 
> i have this one
> private Set detallesingresoinsumos = new HashSet();
> and maybe more of type Set (collections)
> and its respective accesor methods are
> 
> public void setDetallesingresoinsumos(Set
> detallesingresoinsumos) {
>       this.detallesingresoinsumos =
> detallesingresoinsumos;
> }
> /**
>  * @hibernate.set inverse="true" lazy="true" 
>  * @hibernate.collection-key column="idArticulo"
>  * @hibernate.collection-one-to-many
>
class="com.lagranjita.modelo.entidades.DetalleIngresoInsumos"
>  */
> public Set getDetallesingresoinsumos() {
>       return detallesingresoinsumos;
> }
> 
> well with xdoclet i can create the mapping files, so
> here no problem
> 
> now for example in this part of some DAO method
> 
> ......
> DetalleIngresoInsumos detalleIngresoInsumos = new
> DetalleIngresoInsumos();
> try{
>       Articulo articulo = (Articulo)
> getHibernateTemplate().get(
>               
>
Articulo.class,ajaxWrapDetalleIngresoInsumos.getIdArticulo());
> 
>
articulo.getDetallesingresoinsumos().add(detalleIngresoInsumos);
>       detalleIngresoInsumos.setIdArticulo(articulo);
> 
> well eclipse 3.2 always in the bold part show a
> underline color yellow how a
> warning
> in the left of the window a icon warning simbol , if
> i put my mouse over
> there i see this message
> 
> 
> Type safety: The method add(Object) belongs to the
> raw type Set.
> References to generic type Set<E> should be
> parameterized
> 
> 
> so , now i if do this
> 
> private Set<DetalleIngresoInsumos>
> detallesingresoinsumos = new
> HashSet<DetalleIngresoInsumos>();
> 
> public void
> setDetallesingresoinsumos(Set<DetalleIngresoInsumos>
> detallesingresoinsumos) {
>       this.detallesingresoinsumos =
> detallesingresoinsumos;
> }
> xdoclet declaration
> public Set<DetalleIngresoInsumos>
> getDetallesingresoinsumos() {
>         return detallesingresoinsumos;
> }
> 
> the warning message is gone
> 
> but i have this problem with xdoclet now
> 
> 
> .....
> [hibernatedoclet] Generating mapping file for
> com.lagranjita.modelo.entidades.Articulo.
> [hibernatedoclet]
> com.lagranjita.modelo.entidades.Articulo
> [hibernatedoclet] (XDocletMain.start                
>   53  ) Running XDoclet
> failed.
> [hibernatedoclet] (XDocletMain.start                
>   54  ) <<Class
> com.lagranjita.modelo.entidades.Articulo misses ID
> property>>
> [hibernatedoclet]
>
/................blablbkla.....................ps/lagranjita/WEB-INF/build.xml:108:
> XDoclet failed.
> [hibernatedoclet] at
> xdoclet.DocletTask.start(DocletTask.java:471)
> [hibernatedoclet] at
>
xjavadoc.ant.XJavadocTask.execute(XJavadocTask.java:105)
> [hibernatedoclet] at
>
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
> [hibernatedoclet] at
> org.apache.tools.ant.Task.perform(Task.java:364)
> .......
> hibernatedoclet] --- Nested Exception ---
> [hibernatedoclet] xdoclet.XDocletException: Class
> com.lagranjita.modelo.entidades.Articulo misses ID
> property
> [hibernatedoclet] at
>
xdoclet.modules.hibernate.HibernateTagsHandler.hasCompositeId_Impl(HibernateTagsHandler.java:668)
> [hibernatedoclet] at
>
xdoclet.modules.hibernate.HibernateTagsHandler.ifHasPrimitiveId(HibernateTagsHandler.java:211)
> 
> 
> i am lost, how i can resolve this??
> 
> inclusive in the example hibernate/xdoclet
> 
>
http://www.hibernate.org/hib_docs/v3/reference/en/html/mapping.html#mapping-xdoclet
> 
> not use <E>, (how my old way)
> 
> pls, help, thanks for advanced
> -- 
> View this message in context:
>
http://www.nabble.com/collection-hibernate-xdoclet-problem-tf3538017.html#a9876014
> Sent from the xdoclet-user mailing list archive at
> Nabble.com.
> 
> 
>
-------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get
> the chance to share your
> opinions on IT & business topics through brief
> surveys-and earn cash
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> xdoclet-user mailing list
> xdoclet-user@lists.sourceforge.net
>
https://lists.sourceforge.net/lists/listinfo/xdoclet-user
> 


----[ Konstantin Pribluda http://www.pribluda.de ]----------------
JTec quality components: http://www.pribluda.de/projects/


 
____________________________________________________________________________________
Now that's room service!  Choose from over 150,000 hotels
in 45,000 destinations on Yahoo! Travel to find your fit.
http://farechase.yahoo.com/promo-generic-14795097

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
xdoclet-user mailing list
xdoclet-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to