Created
November 12, 2012 15:31
-
-
Save brianium/4059979 to your computer and use it in GitHub Desktop.
neo4j relationship types in scala
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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