Entries by Erik Pragt

Removing all records from an OrientDB collection

If you want to delete all records from an OrientDB collection, the best way to do this is using the OrientDB TRUNCATE Class command. To use the Truncate command in a Java application, you can use the following code:


OrientDB drop column

To use the equivalent of a Drop Column in OrientDB, you can use OrientDB’s DROP PROPERTY.
DROP PROPERTY <class>.<property> This however doesn’t remove the values, it only updates the schema, if you have one. To also remove the values, use the following command:
UPDATE <class> REMOVE <property> WHERE <condition> Hope that helps!

Changing Gradle Wrapper versions

When using Gradle, it’s recommended to use the Gradle Wrapper. The wrapper allows you to easily distribute your projects to people who don’t have Gradle installed, and it makes sure your build is repeatable by not breaking when new versions of Gradle are released. To create a wrapper file, executing gradle wrapper is enough. Upgrade/downgrade […]

Using AsciiDoc with IntelliJ IDEA

AsciiDoc is gaining more and more popularity compared to the competing markup languages like Markdown, yet one of the biggest complaints heard was that tooling support was inadequate. These days, however, support for AsciiDoc is available in popular editors like Atom, Sublime, Emacs, Vim, etc, and also in the most popular Java IDE, IntelliJ IDEA. […]

Getting started with Asciidoctor

One of the best ways to get started with AsciiDoc is to use the Asciidoctor toolchain, and specifically the Gradle integration. Ironically, the documentation on how to do this is not always clear, so this blog is an attempt to make things a bit easier. To get started with AsciiDoc and Gradle, we’ll create a […]

Groovy in Action Second Edition PDF and Paper

Only 4 days ago, the paper version (pBook) of Groovy in Action was released, and with the release of the electronic edition (PDF, epub and mobi), all the editions of Groovy in Action, Second Edition, are fully available! So, what’s exactly covered in the book? The book is divided into three parts. The first part […]