Announcement Announcement Module
Collapse
No announcement yet.
Hibernate and Neo4j cross store Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Hibernate and Neo4j cross store

    Hi,

    i am using hibernate with a relational database right now.

    I want to add Neo4j to my persistence layer and to use spring data with cross store.

    Is this possibly with hibernate? I saw some examples but they used the JPA entitymanager and I am using
    the HibernateSessionFactory so when i annotate some fields with @RelateTo i get HibernateMappingExceptions because of an unknown type. So hibernate doesn't ignore this fields.

    Thanks.

  • #2
    Is there a hibernate annotation to ignore fields? Can you add that to those fields?

    Comment


    • #3
      Yes, I can annotate them with "@Transient". With this annotation hibernate ignores this fields, but neo4j doesn't persist them.
      I think I need to pass a valid EntityManagerFactory to the neo4j configuration.

      Maybe there is a way to get the JPA EntityManagerFactory from the HibernateSession?

      Comment

      Working...
      X