Comments (5)
Any solution for this?
from neo4j-ogm.
There's a similar issue when using generics and converters:
@Convert(MapJson.class)
private Map<String,Object> attributes;
public class MapJson implements AttributeConverter<Map<String,Object>,String> { .. }
Exception:
Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: java/lang/String;Ljava/lang/Object
at org.neo4j.ogm.metadata.ClassUtils.getType(ClassUtils.java:94)
at org.neo4j.ogm.entityaccess.FieldWriter.write(FieldWriter.java:68)
at org.neo4j.ogm.mapper.GraphEntityMapper.writeProperty(GraphEntityMapper.java:162)
at org.neo4j.ogm.mapper.GraphEntityMapper.setProperties(GraphEntityMapper.java:127)
at org.neo4j.ogm.mapper.GraphEntityMapper.mapNodes(GraphEntityMapper.java:108)
at org.neo4j.ogm.mapper.GraphEntityMapper.mapEntities(GraphEntityMapper.java:92)
... 35 more
Caused by: java.lang.ClassNotFoundException: java/lang/String;Ljava/lang/Object
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:270)
at org.neo4j.ogm.metadata.classloader.MetaDataClassLoader.loadClass(MetaDataClassLoader.java:34)
at org.neo4j.ogm.metadata.ClassUtils.getType(ClassUtils.java:92)
... 40 more
from neo4j-ogm.
@luanne The converters problem is slightly different. I've created a separate ticket for it here: #102
from neo4j-ogm.
This is very interesting. Can you please explain the use case? What are you going to do with this? Can you help me understand why you would do this?
from neo4j-ogm.
I think the user is trying to link A and B type nodes with relationships that have properties of a certain type. This would be useful for querying the graph by relationship property type. This is a more suitable use case for Cypher.
from neo4j-ogm.
Related Issues (20)
- OGM Session.load(entity, id, depth) result incorrect when entity have a field is same type with entity
- InternalIdStrategy vs elementId in Neo4J 5 HOT 3
- How to extend a customized driver with ogm based on this repo? HOT 2
- Result not of expected size exception while finding by id when a connected node have the same type HOT 3
- Cannot use name of field converted with a `CompositeAttributeConverter` in converted map HOT 2
- Extension points in OGM Session to provide Transaction Manager HOT 5
- Updating neo4j-ogm from 3.1.2 to 3.2.39 giving org.neo4j.ogm.exception.core.NotFoundException error HOT 1
- Feature Request: Include node/relationship IDs in OptimisticLockingException HOT 2
- Neo4j OGM general question HOT 7
- @Formula annotation in nodes for calculable fields HOT 3
- Nullpointer when Neo.ClientNotification.Statement.CodeGenerationFailed HOT 5
- Direct Relationship Persistence Issue HOT 10
- OGM returns empty result if query results contains nodes and rels with same native id HOT 5
- Delete this repository HOT 2
- SDN OGM @Properties for Map of Collections HOT 4
- Neo4j Access to record went out of bounds of the page HOT 2
- Unit test for GH-952 now useless HOT 2
- Lots Of Deprecation Warnings about the Use of ID function HOT 4
- java.lang.UnsupportedOperationException: This method has been deprecated and should not have been called HOT 4
- How to use ImpersonatedUser in neo4j ogm session HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from neo4j-ogm.