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

Using multiple annotation

1 reply
Nilanjan Raycha...
Joined: 2009-11-06,
User offline. Last seen 42 years 45 weeks ago.
Hi,

Is it possible to use multiple field annotation inside a scala class?

For example:

@ManyToOne
@BeanProperty
var someField:String = _

I am getting compilation failures when I am trying the above.

Thanks in advance
Nilanjan
Kevin Wright
Joined: 2009-06-09,
User offline. Last seen 49 weeks 3 days ago.
Re: Using multiple annotation

Is this under 2.7 or 2.8?

On Fri, Nov 6, 2009 at 4:31 AM, Nilanjan Raychaudhuri
wrote:
> Hi,
>
> Is it possible to use multiple field annotation inside a scala class?
>
> For example:
>
> @ManyToOne
> @BeanProperty
> var someField:String = _
>
> I am getting compilation failures when I am trying the above.
>
> Thanks in advance
> Nilanjan
>

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