This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Nested Annotations

2 replies
Florian Hars
Joined: 2008-12-18,
User offline. Last seen 42 years 45 weeks ago.

Is http://lampsvn.epfl.ch/trac/scala/ticket/294 fixed in the current
snapshots?

If not, when will it be?

- Florian.

rytz
Joined: 2008-07-01,
User offline. Last seen 45 weeks 5 days ago.
Re: Nested Annotations


On Mon, Mar 23, 2009 at 13:28, Florian Hars <hars@bik-gmbh.de> wrote:
Is http://lampsvn.epfl.ch/trac/scala/ticket/294 fixed in the current
snapshots?

If not, when will it be?

No it's not fixed yet, and the problem is on the syntax level:
http://www.nabble.com/nested-annotations-td18811917.html#a18914592

I'm currently working on named arguments, I hope they will be in 2.8.0.

Lukas


Florian Hars
Joined: 2008-12-18,
User offline. Last seen 42 years 45 weeks ago.
Re: Nested Annotations

Lukas Rytz schrieb:
> No it's not fixed yet, and the problem is on the syntax level:

Good to know that the old language designer's battle cry "but it is
only syntax!" still applies :-). So I guess I should not hold my breath
and instead try to design my JPA code so that it will not need nested
annotations. You can get quite far by relying on default naming conventions,
but explicitly modeling many-to-many relations with composite keys gets
hairy. (Admittedly, that seems to be a weak point of JPA in general).

> I'm currently working on named arguments, I hope they will be in 2.8.0.

Good luck, then.

- Florian.

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland