Blog
-
Association types in GORM
GORM (Grails Object Relational Mapping) is a plugin integrated with Grails and based on Java ORM – Hibernate. In this article, I’m going to describe how to make different kinds of associations in GORM. One-to-many relationships Let’s…
-
Dump a specific table or few rows (MySQL)
The ‘mysqldump’ command is used to dump databases managed by MySQL. Let’s consider three the most useful cases of MySQL database dumping. 2. Sometimes, there’s a need to dump a single table from your database. You can…
-
How to deploy Grails (Tomcat 7) application to Cloud Foundry
I had an issue with deploying my Grails project to Cloud Foundry with using cloudfoundry-grails-plugin. My application was using Tomcat 7 unlike Cloud Foundry, which use Tomcat 6. In other words, to have a Grails application with…
-
Embedding recent Jetty in Groovy using Grape
Several days ago I have a need to launch Groovlets on a web server. I have decided to go with recent Jetty for this task, developed by Eclipse Foundation at these days. It turned out to be…
-
Upgrade ElasticSearch on Linux
Suppose you have a system with ElasticSearch server installed and need to upgrade it to a newer version. Below is a step-by-step guide explaining how you can do it, but note that it only works for ElasticSearch…
-
Proper rendering of posts by tag and by author in Octopress
Octopress has generation of per tag index. By default it shows onlypost title. This works okay, until the moment when you will want tocustomize category_index.html and try to output some excerpt of postcontent too. You will face…
-
Checkout a specific revision with Git
If you have a project and want to checkout specific revision (commit), you can do it as described below. 1) Clone the project: 2) Use the git describe command to get readable name for your commit.The git…
-
Get total records count with GORM criteria
Assume you have a page with pagination that displays some objects table (selected from DB with GORM criteria) in your Grails application. If you want to know total number of possible results (as if there are no…
-
Unit testing web flow in Grails
I’ve faced a problem with unit testing web flow controllers There’s an existings WebFlowUnitTestMixin for unit testing webflow in GDK,but no word on how to use it in the latest Grails 2.2.0 official documentation. I’ve used spock…
-
Native 0mq library version for akka-zeromq-2.0.x
I had a chance to try akka-zeromq module last month in order to implement solution for inter-service communication using Scala, Akka 2.0 and ZeroMQ. The module is built as extension to Akka and based on ZeroMQ bindings…
-
How to create remote git branch in IntelliJ IDEA
To create remote Git branch in IntelliJ idea one should:
-
Customizing the field widget of the Platform UI Grails plugin
Our team is working on a Grails plugin now, which will have UI based on Platform UI Grails plugin. Platform UI plugin allows you to easily configure Grails applications look using different page markups(themes). It provides a…
Boost your business with custom software
Tell us about your business needs and we’ll suggest a solution
Thank you!
We have received your request and will get back to you within 1 business day.











