Adding the import did the trick, thank you so much for spotting that.
Could we get that little bit added to the release notes, in the
standalone gorm section?
<http://www.grails.org/1.1-RC1+Release+Notes#GORM>
Thanks again,
Lance
Graeme Rocher wrote:
The @Entity is not the javax.persistence one. You need to add this import:
import grails.persistence.*
Cheers
On Thu, Mar 26, 2009 at 8:27 PM, Lance Lavandowska at Home
<lan...@brainopolis.com> wrote:
I'm researching using Standalone GORM for a project. I've used the
petclinic-mvc sample app as a guide (the project structure is a little
different since I'm not building a webapp), even using the provided
build.xml with minor changes (just source & build locations).
I can build the petclinic-mvc app without a problem, but when I try to build
my one gorm class I get the following error:
[groovyc] org.codehaus.groovy.control.MultipleCompilationErrorsException:
star
tup failed,
C:\grails\grails-1.1\samples\gwarch\src\main\groovy\com\ibsys\wx\Tex
tProduct.groovy: 3: unable to resolve class Entity , unable to find class
for a
nnotation
[groovyc] @ line 3, column 2.
[groovyc] @Entity
[groovyc] ^
Any suggestions would be appreciated,