Grails Neo4j plugin 0.2发布
程序员文章站
2022-04-30 18:20:54
...
Grails Neo4j插件 0.2版本发布。Neo4j是一个基于Java的NoSQL图形数据库。
新特性:
- 升级至Neo4j 1.0
- 支持Neo4j索引
import grails.plugins.neo4j.*
@Neo4jEntity
class Car {
String licenseTag // normal, aka non-indexed property
@Neo4jIndex
String color // indexed property
}
- 支持non-declared properties
def car = new Car(licenseTag:'ABC123', color:'red')
car.save()
assert 'red' == car.color // declared property
assert null = car.numberOfSeats // N.B: numberOfSeats is _not_ declared
car.numberOfSeats = 5
assert '5' == car.numberOfSeats
- 支持 traverser
……
点击查看详情:http://blog.armbruster-it.de/2010/03/grails-neo4j-plugin-0-2-released/