Re: [Hibernate] Annotated collections

2004-05-09 Thread Emmanuel Bernard
- From: [EMAIL PROTECTED] [mailto:hibernate-devel- [EMAIL PROTECTED] On Behalf Of Emmanuel Bernard Sent: Saturday, May 01, 2004 2:58 PM Cc: [EMAIL PROTECTED] Subject: Re: [Hibernate] Annotated collections OK here are more details. Here is a typical correct annotation in the solution 1 @Map(

RE: [Hibernate] Annotated collections

2004-05-08 Thread Ara Abrahamian
PROTECTED] > Subject: Re: [Hibernate] Annotated collections > > OK here are more details. > > Here is a typical correct annotation in the solution 1 > @Map( > @Index( > type = "String" > ), > @Element( > type="String

Re: [Hibernate] Annotated collections

2004-05-08 Thread David Channon
PM Subject: [Hibernate] Annotated collections > I'm working on collection annotations right now, and I don't like the > way it goes. > Since now I managed to annotate using composition for dependent annotation > @Id ( > @Generator( > @Param[] > )

Re: [Hibernate] Annotated collections

2004-05-08 Thread Emmanuel Bernard
From the spec FAQ *Why don't you support attribute subtyping (where one attribute type extends another)?* It complicates the attribute type system, and makes it much more difficult to write "Specific Tools" (per the taxonomy in Section VI). but it's more difficult to write annotation too...

Re: [Hibernate] Annotated collections

2004-05-08 Thread Max Rydahl Andersen
Hi Bernard, Your questions first: yes - I would think the compositional way is best - mainly because it would mimic the hbm.xml way of declaring things. Then now my complaints ;) I must say that these annotations for sure is very verbatim and IMHO clogs up the code - but hey, that's just me ;)

Re: [Hibernate] Annotated collections

2004-05-08 Thread Emmanuel Bernard
Note that the 'used' param is not... used / visible in a correct annotation usage. Emmanuel Bernard wrote: OK here are more details. Here is a typical correct annotation in the solution 1 @Map( @Index( type = "String" ), @Element( type="String" columns = { @Column(

Re: [Hibernate] Annotated collections

2004-05-08 Thread Emmanuel Bernard
OK here are more details. Here is a typical correct annotation in the solution 1 @Map( @Index( type = "String" ), @Element( type="String" columns = { @Column( name = "FLD_ELT" ) } ), @Key ( columns = { @Column( name = "PARENT_ID" ) } ), table = "CHILDREN",

Re: [Hibernate] Annotated collections

2004-05-08 Thread Max Rydahl Andersen
Hi Bernard, I'm not totally fluent in JSR-175, yet - so I would very much appreciate if you could give a more "full" examplesomething where you show the complete method/class declaration (just the declaration, not the body) - then I would have a much better grasp on what you're asking for -

[Hibernate] Annotated collections

2004-05-08 Thread Emmanuel Bernard
I'm working on collection annotations right now, and I don't like the way it goes. Since now I managed to annotate using composition for dependent annotation @Id ( @Generator( @Param[] ) ) And I strongly believe it's the best way to do. But for collections, this is more complex. The