DATAGRAPH-340 3.0.GA Release

* update to Spring Data Commons 1.7.0.RELEASE
* temporarily disable strict checking until fixed in SDC
This commit is contained in:
Michael Hunger
2014-02-24 16:01:59 +01:00
parent 556a14b7ea
commit eb5638b45a
2 changed files with 3 additions and 2 deletions

View File

@@ -32,7 +32,7 @@
<properties>
<project.type>multi</project.type>
<dist.id>spring-data-neo4j</dist.id>
<springdata.commons>1.7.0.BUILD-SNAPSHOT</springdata.commons>
<springdata.commons>1.7.0.RELEASE</springdata.commons>
<!-- Neo4j 2.0 now requires JDK 7 as a min -->
<source.level>1.7</source.level>

View File

@@ -97,7 +97,7 @@ public class Neo4jMappingContext extends AbstractMappingContext<Neo4jPersistentE
@Override
public void initialize() {
super.initialize();
setStrict(true);
//TODO re-enable after SDC update setStrict(true);
}
private boolean isRelationshipEntityType(Class<?> type) {
@@ -161,6 +161,7 @@ public class Neo4jMappingContext extends AbstractMappingContext<Neo4jPersistentE
try {
final Neo4jPersistentEntityImpl<?> entity = getPersistentEntity(type);
if (entity == null) annotationCheckCache.put(type, type);
else if (!shouldCreatePersistentEntityFor(ClassTypeInformation.from(type))) annotationCheckCache.put(type, type);
else if (entity.isNodeEntity()) annotationCheckCache.put(type, NodeEntity.class);
else if (entity.isRelationshipEntity()) annotationCheckCache.put(type, RelationshipEntity.class);
else annotationCheckCache.put(type, type);