Skip to content

Instantly share code, notes, and snippets.

@brianium
Created November 12, 2012 15:31
Show Gist options
  • Save brianium/4059979 to your computer and use it in GitHub Desktop.
Save brianium/4059979 to your computer and use it in GitHub Desktop.
neo4j relationship types in scala
package com.brianscaturro
import org.neo4j.graphdb.RelationshipType
object RelTypes extends Enumeration {
type RelTypes = Value
val KNOWS = Value
implicit def conversion(rt: RelTypes) = new RelationshipType() { def name = rt.toString }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment