-
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(
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
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[]
> )
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...
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 ;)
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(
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",
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 -
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