eclipse - Extracting properties from a Groovy object causes H2 database error -



eclipse - Extracting properties from a Groovy object causes H2 database error -

i'm using grails 2.0, groovy 1.8.4 on eclipse sts 3.7. when execute next statement extract properties groovy object, grails throws sql exception, not sure why since i'm not using h2 database. i've deleted datasources.groovy project , commented out references sql or h2 in other config files, problem persists

note note = [title:'foo', details:'bar'] def objprops = note.properties.findall{ !['class','metaclass'].contains(it.key)}

the exception...

org.h2.jdbc.jdbcsqlexception: table "note" not found; sql statement: select this_.id id0_0_, this_.version version0_0_, this_.details details0_0_, this_.title title0_0_ note this_ [42102-147] @ org.h2.message.dbexception.getjdbcsqlexception(dbexception.java:327) @ org.h2.message.dbexception.get(dbexception.java:167) @ org.h2.message.dbexception.get(dbexception.java:144) @ org.h2.command.parser.readtableorview(parser.java:4562) @ org.h2.command.parser.readtablefilter(parser.java:1020) @ org.h2.command.parser.parseselectsimplefrompart(parser.java:1622) @ org.h2.command.parser.parseselectsimple(parser.java:1729)

eclipse grails groovy h2

Comments

Popular posts from this blog

delphi - blogger via idHTTP : error 400 bad request -

c++ - compiler errors when initializing EXPECT_CALL with function which has program_options::variables_map as parameter -

How do I check if an insert was successful with MySQLdb in Python? -