Giter Club home page Giter Club logo

Comments (5)

ArashJalalian avatar ArashJalalian commented on June 7, 2024 2

Any solution for this?

from neo4j-ogm.

luanne avatar luanne commented on June 7, 2024

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.

vince-bickers avatar vince-bickers commented on June 7, 2024

@luanne The converters problem is slightly different. I've created a separate ticket for it here: #102

from neo4j-ogm.

mihairaulea avatar mihairaulea commented on June 7, 2024

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.

mihairaulea avatar mihairaulea commented on June 7, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.