neo4j 1.1.0.beta.1-java → 1.1.0.beta.2-java

Sign up to get free protection for your applications and to get access to all the features.
@@ -17,6 +17,13 @@ module Neo4j
17
17
 
18
18
  def create(attrs)
19
19
  self << (node = @storage.create(attrs))
20
+ node.save
21
+ node
22
+ end
23
+
24
+ def create!(attrs)
25
+ self << (node = @storage.create(attrs))
26
+ node.save!
20
27
  node
21
28
  end
22
29
 
@@ -17,7 +17,16 @@ module Neo4j
17
17
 
18
18
  def create(attrs)
19
19
  node = @storage.create(attrs)
20
- @storage.create_relationship_to(node, @dir)
20
+ rel = @storage.create_relationship_to(node, @dir)
21
+ node.save
22
+ rel
23
+ end
24
+
25
+ def create!(attrs)
26
+ node = @storage.create(attrs)
27
+ rel = @storage.create_relationship_to(node, @dir)
28
+ node.save!
29
+ rel
21
30
  end
22
31
 
23
32
  def outgoing
@@ -1,3 +1,3 @@
1
1
  module Neo4j
2
- VERSION = "1.1.0.beta.1"
2
+ VERSION = "1.1.0.beta.2"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: neo4j
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease: 6
5
- version: 1.1.0.beta.1
5
+ version: 1.1.0.beta.2
6
6
  platform: java
7
7
  authors:
8
8
  - Andreas Ronge
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-04-28 00:00:00 +02:00
13
+ date: 2011-05-02 00:00:00 +02:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency