Results 1 to 3 of 3

Thread: Hibernate and Neo4j cross store

  1. #1
    Join Date
    Oct 2012
    Posts
    2

    Default 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. #2
    Join Date
    Jan 2011
    Location
    Dresden, Germany
    Posts
    525

    Default

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

  3. #3
    Join Date
    Oct 2012
    Posts
    2

    Default

    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?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •