Grails MariaDB Dynamically Created

I have authored a c++ application that is useful in the creation of new Grails projects supporting the MariaDB relational database management system (RDBMS).  The c++ program fulfills all the perfunctory requirements to utilize MariaDB via Grails. Create the Grails Project – This is accomplished by allowing the user to select a target for the […]

Grails MariaDB In Action

To initiate the compile step issue the following command. [codesyntax lang=”bash”] grails compile [/codesyntax] To create the domain class issue the following command. [codesyntax lang=”bash”] grails create-domain-class ttd [/codesyntax] Navigate to the following domain and modify it to reflect the following. [codesyntax lang=”cpp”] package demo01 class Ttd { String name Date startDate Date endDate Boolean […]

Grails

Grails is a web application framework that is based on the popular programming language, Groovy. Some of the advantages of using Grails are: Rapid Application Development: Grails offers a high level of abstraction and convention over configuration that allows developers to build applications quickly and easily. Built on Spring and Hibernate: Grails is built on […]

String Array To File

The code below allows the contents of a collection of strings to be written to a text file. [codesyntax lang=”cpp”] void grailsGenFrame::saveBuild() { out.Open(“/home/archman/workspace/grails/grailsSkel/build.gradle2”); for (size_t i=0; i < str.Count(); i++) { out.AddLine(str[i]); } out.Write(); out.Close(); } [/codesyntax] Mr. Arch Brooks, Software Engineer, Brooks Computing Systems, LLC authored this article.

Grails and MariaDB

To create a grails project with MariaDB support go to the base directory for grails projects and issue the following command. [codesyntax lang=”bash”] grails create-app yourProjectName [/codesyntax] Change directory to yourProjectName and edit the build.gradle. Include the following dependency ” runtimeOnly ‘org.mariadb.jdbc:mariadb-java-client:2.7.4′”.  Save the file and issue the following command “grails compile”. You should now […]

Grails Tasks

To establish a class domain for tasks issue the following command. [codesyntax lang=”bash”] grails create-domain-class tasks [/codesyntax] To fill in the details on the domain key in the following. [codesyntax lang=”bash”] class Tasks { String name Date startDate Date endDate Boolean comp static constraints = { } [/codesyntax] To generate scaffonding for the tasks class […]

Install Grails Archlinux

To install Grails on Archlinux issue the following command. [codesyntax lang=”bash”] yay -S grails [/codesyntax] To check the version of Grails installed issue the following command. [codesyntax lang=”bash”] grails –version [/codesyntax] Mr. Arch Brooks, Software Engineer, Brooks Computing Systems, LLC authored this article. Click here

Strategy For Java Development

When programming Java you are religated to POJO’s (plain old java objects) unless you are using a domain specific language. Grails has been in existence since 2005  in addition to Java code generation frameworks are in place that allow for seamless intergration of  . Mr. Arch Brooks, Software Engineer, Brooks Computing Systems, LLC authored this […]

BCS Grails Availability

It is desirable to have Grails available for customer support.  Download the latest version of Grails and extract it to the location where you host applications. Establish a “GRAILS_HOME” environment variable and update the path to include the “bin” folder of the newly installed Grails. In terminal invoke the Grails version command as indicated below.  […]