title: neo4j : Cannot perform data updates in a transaction that has performed schema updates
body: <p>Hi I am getting following error while saving NodeEntity object by using Neo4jTemplate</p>
  
  <p>Cannot perform data updates in a transaction that has performed schema updates</p>
  
  <p>Spring-data :- </p>
  
  <pre><code>        &lt;groupId&gt;org.springframework.data&lt;/groupId&gt;
          &lt;artifactId&gt;spring-data-neo4j&lt;/artifactId&gt;
          &lt;version&gt;3.1.0.BUILD-SNAPSHOT&lt;/version&gt;
  </code></pre>
  
  <p>Neo4j Version : 2.X</p>
  
  <p>Service :- </p>
  
  <pre><code>@Override
  @Transactional
  public void addRepository(Repository repository) {
      template.save(repository);
  }
  </code></pre>
  
  <p>Caused by: org.neo4j.kernel.api.exceptions.InvalidTransactionTypeKernelException: Cannot perform data updates in a transaction that has performed schema updates.
      at org.neo4j.kernel.impl.api.KernelTransactionImplementation$TransactionType$2.upgradeToDataTransaction(KernelTransactionImplementation.java:452)
      at org.neo4j.kernel.impl.api.KernelTransactionImplementation.upgradeToDataTransaction(KernelTransactionImplementation.java:212)
      at org.neo4j.kernel.impl.api.KernelStatement.dataWriteOperations(KernelStatement.java:84)
      at org.neo4j.kernel.InternalAbstractGraphDatabase.createNode(InternalAbstractGraphDatabase.java:1033)
      ... 49 more</p>