Blog
Enterprise application might be developed using a variety of architectural styles. And REST is one of the most powerful of them. It allows us to build simple, scalable, highly productive APIs with independent components on the basis…
I’m using Slick library in my project and need to ensure that all required MySQL tables are created on application start. The common approach of creating DDL statements for a table in Slick is calling its ddl method that…
Slick documentation says how to perform update operation for specific column, but doesn’t contain any examples of updating entire record. Below is tiny example of how to do that. Let’s assume we have a mapped table that…
This example shows how to use pagination and sorting with many-to-many relationship in Grails. Suppose you have two domain classes: Author, Article and you want to display all articles of some author in a page with pagination. Domain classes: The…
When Groovy has grown up to version 2, it has gained a lot of brand new features and improvements in areas of productivity and security. Groovy now provides the ability to statically type check and statically compile…
Gpars (Groovy Parallel Systems) is the best solution for your concurrency problems with mutable objects. Gpars gives you a number of high-level abstractions for writing concurrent and parallel code in Groovy (map/reduce, fork/join, asynchronous closures, actors, agents,…
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…
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…
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…
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…
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…
Octopress has generation of per tag index. By default it shows only post title. This works okay, until the moment when you will want to customize category_index.html and try to output some excerpt of post content too.…
Boost your business with custom software
Tell us about your business needs and we’ll suggest a solution
We have received your request and will get back to you within 1 business day