PlanetJava
Custom Search

java-xdoclet-user
[Top] [All Lists]

RES: RES: Hibernate key colmun problem

Subject: RES: RES: Hibernate key colmun problem
Date: Tue, 14 Jun 2005 15:36:02 -0300
But XD2 at codehaus is the same team, same community or is other team
and other community?
I read about and see at sourceforge xdoclet a 2.0 version in
development.
I read the two team page and it's different team. Are someone cloning
someone?
-----Mensagem original-----
De: [email protected]
[mailto:[email protected]] Em nome de Konstantin
Priblouda
Enviada em: terça-feira, 14 de junho de 2005 15:20
Para: [email protected]
Assunto: Re: RES: [Xdoclet-user] Hibernate key colmun problem
XD2 is at codehaus. A lot of XD1 developers prefer to
stay with old architecture though. 
regards,
--- Flávio H Suguimoto Leite
<[email protected]> wrote:
> A doubt, xdoclet moved to codehaus? Where is the
> real build stream??
> 
> 
> -----Mensagem original-----
> De: [email protected]
> [mailto:[email protected]] Em
> nome de Emil
> Korladinov
> Enviada em: terça-feira, 14 de junho de 2005 14:08
> Para: [email protected]
> Assunto: Re: [Xdoclet-user] Hibernate key colmun
> problem
> 
> Hi,
> 
> If You use xdoclet 1.3-SNAPHOT then You can write:
> 
> @hibernate.map cascade="all" inverse="false"
> sort="natural" 
> @hibernate.one-to-many class="Option" 
> @hibernate.key column="fk_drawing"  not-null="true"
> @hibernate.index column="digit"
> type="java.lang.Integer" 
> 
> 
> HTH
> 
> Regards 
> 
> ~Emil
> 
> 
> On 6/14/05, Flávio H Suguimoto Leite
> <[email protected]> wrote:
> >  
> >  
> > 
> > I need to generate this hibernate tag: 
> > 
> >   
> > 
> >         <map 
> > 
> >             name="options" 
> > 
> >             lazy="false" 
> > 
> >             sort="natural" 
> > 
> >             inverse="false" 
> > 
> >             cascade="all" 
> > 
> >         > 
> > 
> >   
> > 
> >             <key 
> > 
> >                 column="fk_drawing"
> not-null="true" 
> > 
> >             > 
> > 
> >             </key> 
> > 
> >   
> > 
> >             <index 
> > 
> >                 column="digit" 
> > 
> >                 type="java.lang.Integer" 
> > 
> >             /> 
> > 
> >   
> > 
> >             <one-to-many 
> > 
> >                   class="Option" 
> > 
> >             /> 
> > 
> >   
> > 
> >         </map> 
> > 
> >   
> > 
> > The most important is the not-null="true"
> attribute in key node. But
> in
> > XDoclet I try to use this annotations: 
> > 
> >   
> > 
> >  * @hibernate.map cascade="all" inverse="false"
> sort="natural" 
> > 
> >  * @hibernate.collection-one-to-many
> class="Option" 
> > 
> >  * @hibernate.collection-key column="fk_drawing" 
> > 
> >  * @hibernate.collection-index column="digit"
> type="java.lang.Integer"
> 
> > 
> >             
> > 
> > It generates almost tag but not-null="true"
> attribute I couldn't
> because
> > @hibernate.collection-key hasn't a not-null
> attribute. If I do not put
> this
> > attribute hibernate tries to insert child first
> than parent and its
> corrupt
> > the database that doesn't allow foreign-key null. 
> > 
> >   
> > 
> > I try to change it to: 
> > 
> >   
> > 
> > * @hibernate.collection-key 
> > 
> > * @hibernate.collection-key-column
> name="fk_drawing" not-null="true" 
> > 
> >   
> > 
> > But it generates this tag: 
> > 
> >   
> > 
> >   
> > 
> >             <key 
> > 
> >             > 
> > 
> >                 <column 
> > 
> >                     name="fk_drawing" 
> > 
> >                     not-null="true" 
> > 
> >                 /> 
> > 
> >             </key> 
> > 
> >   
> > 
> > And hibernate doesn't allow it. 
> > 
> >   
> > 
> > Have someone a solution to this case? 
> > 
> >   
> > 
> > Flávio H Suguimoto Leite 
> > 
> > Pragya Technologies Americas - Brazil 
> > 
> >   
> > 
> >   
> > 
> > Ribeirão Preto - SP - Brazil 
> > 
> >
> 
> 
>
-------------------------------------------------------
> SF.Net email is sponsored by: Discover Easy Linux
> Migration Strategies
> from IBM. Find simple to follow Roadmaps,
> straightforward articles,
> informative Webcasts and more! Get everything you
> need to get up to
> speed, fast.
> http://ads.osdn.com/?ad_idt77&alloc_id492&op=ick
> _______________________________________________
> xdoclet-user mailing list
> [email protected]
>
https://lists.sourceforge.net/lists/listinfo/xdoclet-user
> 
> 
> 
> 
>
-------------------------------------------------------
> SF.Net email is sponsored by: Discover Easy Linux
> Migration Strategies
> from IBM. Find simple to follow Roadmaps,
> straightforward articles,
> informative Webcasts and more! Get everything you
> need to get up to
> speed, fast.
> http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
> _______________________________________________
> xdoclet-user mailing list
> [email protected]
>
https://lists.sourceforge.net/lists/listinfo/xdoclet-user
> 
----[ Konstantin Pribluda ( ko5tik ) ]----------------
... Auf der Suche nach einen Projekt in Rhein-Main
ab 18.4.2005
----[ http://www.pribluda.de ]------------------------
__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
xdoclet-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
msgmiddle
<Prev in Thread] Current Thread [Next in Thread>
Current Sitemap | © 2012 planetjava | Contact | Privacy Policy