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 7756313
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T12:47:26+00:00 2026-06-01T12:47:26+00:00

I have an entity Tag and an entity Note . A note object can

  • 0

I have an entity Tag and an entity Note. A note object can have several tags, and a tag object can have several notes. So say now I have a Note object note1 and I have tag objects tag1 and tag2. I add note1 to the notes set in the tag1 object. Then I also add note1 to tag2 object. My question is, is there only 1 instance of note1 system wide? Or are there now two copies of note1, one for tag1 and one for tag2?

  • 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-01T12:47:27+00:00Added an answer on June 1, 2026 at 12:47 pm

    Well, there may or may not be more than 1 references to note1 system-wide (you might have fetched the object somewhere else), but both tag1 and tag2 will have the same note1 object (this is what you mean with same “instance”, right?). The one that – if you’ve configured the relations correctly – will have two tags, namely tag1 and tag2.

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

Sidebar

Related Questions

I have entity objects: @Entity public class Tag { @Id private Long id; @Transient
I have a Tag and an Article object with a many-to-many relationship using Entity
I have two resource classes Pc.java - @Path(/pc) Tag.java - @Path(/{entity:(pc|networks)?}/{id}/tags) So the second
I have entity Unit and Tag , each with to-many relation to other. I
I have a Course entity which contains a Set of Keys to my Tag
Total newbie question now... Suffice to say, I have searched for a completely noddy
I have the following entities Product Entity Category Entity Tag Entity Brand Entity What
My scenario is as follows: I have some objects (Messages) that can be tagged
In my Core Data managed object model, I have an entity Foo with a
Let's say I have a Meeting entity. Each meeting has a single attendee and

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.