Grails MariaDB In Action

To initiate the compile step issue the following command.
[codesyntax lang=”bash”]

grails compile


To create the domain class issue the following command.
[codesyntax lang=”bash”]

grails create-domain-class ttd

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 comp

    static constraints = {
Generate CRUD scaffolding by issuing the following command.
[codesyntax lang="bash"]
grails generate-all ttd

To run the app issue the following command.
[codesyntax lang=”php”]

grails run-app

[codesyntax lang=”bash”]

| Running application...
Grails application running at http://localhost:8080 in environment: development
<===========--> 85% EXECUTING [1m 7s]
> :bootRun


Click on the controller above to reval the next offering.

Mr. Arch Brooks, Software Engineer, Brooks Computing Systems, LLC authored this article.

Leave a Reply

Your email address will not be published. Required fields are marked *