As announced by Stefan Armbruster on the Neo4j and Grails mailing lists, the initial 0.1 version of the Neo4j Grails plugin has been released by him. Read the full announcement in this blog post. Grails is a web application framwork based on the Groovy language. At the moment the plugin has support for the basic CRUD operations and also exposes the underlying node of each domain object through a property.

Different people have requested such a plugin previously, so it’s exiting news that the plugin now exists.

Stefan has also provided example code for how to use the plugin. Basic domain classes may look like this:

class Author { 
    String name
    Date dob
    static hasMany = [ books: Book ]
}

class Book {
    String title
    static belongsTo = [ author:Author ]
}
After adding a little data to the domain the node space will look like this (click for bigger version):




Want to learn more about graph databases? Click below to get your free copy of O’Reilly’s Graph Databases ebook and discover how to use graph technologies for your application today.

Download My Ebook

 

Keywords:  


About the Author

Julian Simpson, Full Stack Developer

Julian Simpson Image

Julian Simpson brings to Neo Technology the benefits of a long and random IT career. From working in thankless IT support jobs, to Unix Systems Administration, to DevOps consulting and writing, Julian has sometimes been at the cutting edge of technology. He keeps the marketing engines humming at Neo Technology.


Leave a Reply

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

Subscribe

Upcoming Event

 


Have a Graph Question?

Stack Overflow
Slack
Contact Us

Share your Graph Story?

Email us: content@neo4j.com