The file name in step 4 must have no extension. March 22, at 4: Persistence The persistence layer has seen a lot of change over the last year or two, not least because GORM is now available for multiple data stores, not just SQL via Hibernate. Posted by jlorenzen at But why then bother with grails? Stack Overflow works best with JavaScript enabled. Just a note though:

Uploader: Kazirg
Date Added: 13 December 2008
File Size: 7.27 Mb
Operating Systems: Windows NT/2000/XP/2003/2003/7/8/10 MacOS 10/X
Downloads: 81032
Price: Free* [*Free Regsitration Required]

gorm – Grails HSQLDB – Stack Overflow

As the message explains, you can fix this in one of two ways. The quickest is to add this line to BuildConfig. Sign up using Facebook. Then you can save it, and you’re done. If you want an even quicker but dirtier hslqdb to see if your app is inserting data have a look in the devDB.

An alternative approach is to work with JDBC directly. For example I am trying to save a simple name to a database but I cant seem to figure out how to persist it. This document will navigate you through the changes you may need to make in order to get an existing Grails 1.


A few more tips is to turn on sql logging. Post as a guest Name. Thanks for the post. By using our site, you acknowledge that you have read grailss understand our Cookie PolicyPrivacy Policyand our Terms of Service.

James Lorenzen’s Blog: How to connect to a Grails HSQL Database

Thanks for posting this. Open up the DataSource. Others only affect a few projects. Still, most domain models won’t have to change much if at all.

Just a note though: Check out this stackoverflow. You can have dataSource bean automatically injected into your controller, then use the groovy. If that’s the case, work out what changes were made to it, re-run grails install-templatesand then apply the changes to the new web descriptor. July 23, at 1: I feel I have followed the directions hsqlrb but am unable to see my tables show up in the public schema.

It will make your life better. First, create the domain class:. The recommended approach is to create a domain class with a String name property.


Upgrade to Grails 2

Grails 2 has switched to H2 as the default instead, and so if you try to run your application you’ll see this warning: Sql class to query garils dataSource. Email Required, but never shown. Do you have any suggestion on how I should try this?

View my complete profile.

Then, with Grails 2 execute: Rafiq Flucas 56 1 8. September 23, at 4: Post Your Answer Discard By clicking “Post Your Answer”, you acknowledge that you have read our updated terms of serviceprivacy policy and cookie policyand that your continued use of the website is subject to these policies.

And it seems that the Grails app must not be running at the same time otherwise we can’t access the database. First, create the domain class: