Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7941187
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T23:35:37+00:00 2026-06-03T23:35:37+00:00

I have an application using MySQL as the DB and hibernate and struts. I’m

  • 0

I have an application using MySQL as the DB and hibernate and struts. I’m working on converting this to use Neo4J instead of Hibernate and MySQL. The structure is a little different, a new way of thinking of relationships – they are more life-like. Anyway, I have a person node that has a relationship to a company node and the relationship is employed. So a person is employed at a company. A person also has skills and these skills could be obtained while being employed at a company. so I need to somehow go from an employed relationship to a skill.

I know you can’t go from a relationship to a relationship as they are simply ties from a node to a node (an edge). So I’m sure I just need to think of a way to relate these objects better. I was thinking of somehow splitting up the employed relationship into a node as experience perhaps. So a person has experiences. They got this experience by being employed at a company. They got these skills from this experience. Which makes sense but I think of nodes as “concrete” information where I could start from and work my way back to other “concrete” information, and having experiences in a node doesn’t seem right. It seems to vague, it seems like something that should be stored within a relationship, which is how I have it now, so I’m back to square one.

Another thing I’m struggling with, which splitting out the experience into a node might help with this, is that a person can gain multiple types of experiences from the same company – working their way up the food chain so to speak. So I would need to have a person with multiple relationships to different experiences which point back to the same company. And that is fine – it makes sense to have multiple relationships to have multiple experiences. It seems to be a long way to go for a company to see who they have employed.

Maybe the experience could be more like a position. A company has a position and that position is known to have these skills associated with them. The position is filled by a person and the person could add skills to the what is already associated to that position. But those skills they add do not need to be added as default, so there would need to e some flag in the relationship from position to skill.

Hmm that might work. Anyone else struggle with these kinds of domain building issues with Neo4J or any graph database really. It’s definitely a new way of thinking of data structures. It’s almost best to forget all the rdbms knowledge and “rules” you learned.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T23:35:40+00:00Added an answer on June 3, 2026 at 11:35 pm

    Yeah, you’ve encountered the hyperedge. Take a look at http://docs.neo4j.org/chunked/stable/cypher-cookbook-hyperedges.html

    One of the equivalents in your case could be a Person related to an Experience/Position node. The Experience node has two types of relations- one is EmployedAt and one is AquiredSkill.
    Example:
    (Person)-[:has]->(Experience)
    (Experience)-[:EmployedAt]->(Company)
    (Experience)-[:AquiredSkill]->(Skill)

    And you have multiple experiences for a person and multiple skills for an experience/position.
    That way you can trace a persons skills/lifetime at a company through his experiences, and if you also share the skill, then you can trace skill sets across companies.

    Think that makes sense?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have made an application using Java/Hibernate/MySQL, but whenever I try running it, it
I'm using: Hibernate MySQL jBoss I have to create an application that allows user
I have been working on on an AJAX chat application using php, mysql. It's
I have a problem with Hibernate (3.6.0.-Final) in my Java EE application using MySQL
I have a struts application that uses Hibernate to access a MYSQL DB. I
I am using Struts and Hibernate for my web application. And also i have
I have written an application using Seam 2.2.1 & MySQL which is working. I
I have an application using Spring with Hibernate on a MySQL database. For some
I have this web application using Spring Web Flow framework. In my main page
I'm building a Route Planner Webapp using Spring/Hibernate/Tomcat and a mysql database, I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.