« Return to Thread: Re: [groovy-dev] Re: Initial annotation support is in SVN trunk

Re: [groovy-dev] Re: Initial annotation support is in SVN trunk

by Pascal DeMilly-2 :: Rate this Message:

Reply to Author | View in Thread

I am trying to use Hibernate annotation in a groovy script but I am getting
anerror

org.codehaus.groovy.control.MultipleCompilationErrorsException: startup
failed, crs/business/cashreg/CashRegTill.groovy: 8: unexpected token: class @
line 8, column 1.
   class CashRegTill {

The groovy file is:
package crs.business.cashreg;

import javax.persistence.Entity
import javax.persistence.Table

@Entity
@Table(name="CashRegTills")
class CashRegTill {
}

I am using Groovy Version: 1.0.1-SNAPSHOT JVM: 1.5.0_08-b03 from yesterday.

What am I missing?

TIA

Pascal


On Sunday 21 January 2007 18:10, Alexandru Popescu wrote:

> On 1/22/07, Alexandru Popescu <the.mindstorm.mailinglist@...> wrote:
> > I have committed the support for array type attributes (except
> > annotation arrays). I think by now most of the cases are covered.
>
> Attached you can find a set of annotations and scripts I have used for
> testing.
>
> ./alex
> --
> .w( the_mindstorm )p.
> _____________________________________
>   Alexandru Popescu, OSS Evangelist
> TestNG/Groovy/AspectJ/WebWork/more...
>   Information Queue ~ www.InfoQ.com
>
> > ./alex
> > --
> > .w( the_mindstorm )p.
> > _____________________________________
> >   Alexandru Popescu, OSS Evangelist
> > TestNG/Groovy/AspectJ/WebWork/more...
> >   Information Queue ~ www.InfoQ.com
> >
> > On 1/22/07, Alexandru Popescu <the.mindstorm.mailinglist@...> wrote:
> > > Hi all!
> > >
> > > Initial support for annotations has been committed to the SVN trunk.
> > > Here is a short list of what is done and what should be done in the
> > > future:
> > >
> > > What it does:
> > >
> > > 1/  It doesn't break anything existing (hopefully)
> > > 2/ Performs checks on annotation usage so this is correct (retention
> > > policy, targets, attribute types, etc.)
> > >
> > > What it doesn't do:
> > > 1/ doesn't support annotation array attributes
> > > 2/ doesn't support annotation annotation attributes
> > > 3/ doesn't support annotations on parameters, local variables,
> > > annotations 4/ doesn't implement support for defining annotations
> > >
> > > Last but not least, there are not test committed in the trunk, as we
> > > need to figure out how we can add test to be run only if a JVM >= 1.5
> > > is available at build time.
> > >
> > > However I have attached here what I am using for testing the code (a
> > > set of annotations and scripts).
> > >
> > > Please give it a try a let me know.
> > >
> > > ./alex
> > > --
> > > .w( the_mindstorm )p.
> > > _____________________________________
> > >   Alexandru Popescu, OSS Evangelist
> > > TestNG/Groovy/AspectJ/WebWork/more...
> > >   Information Queue ~ www.InfoQ.com


attachment0 (196 bytes) Download Attachment

 « Return to Thread: Re: [groovy-dev] Re: Initial annotation support is in SVN trunk