You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
Required fields*
- Maybe I should look into that more. As to why I want to do this--I have a drawing which can have a parts list. Any drawing can be used on a parts list for another drawing. On its own, a drawing can have parts 1, 2, and 3. If that drawing is part of another parts list, say at line 12, then I want it to show as 12, 12-1, 12-2, and 12-3. On another drawing, it might be on the parts list at line 15, so 15-1, 15-2, etc. I still want it to be saved in the database as items 1, 2, and 3, but shown as something else depending on the context.Tim– Tim2018-10-31 17:15:34 +00:00Commented Oct 31, 2018 at 17:15
- Right, exactly. Separate your Problem Domain from your Persistence Domain. You don't want to modify information in the part because of how the drawing is using it, especially since every drawing would be using it differently. Check out some design patterns around this concept. I don't want to run off and start suggesting but definitely don't change the entity like that for that reason.K.Nicholas– K.Nicholas2018-10-31 17:17:57 +00:00Commented Oct 31, 2018 at 17:17
Add a comment |
How to Edit
- Correct minor typos or mistakes
- Clarify meaning without changing it
- Add related resources or links
- Always respect the author’s intent
- Don’t use edits to reply to the author
How to Format
- create code fences with backticks ` or tildes ~ ```
like so
``` - add language identifier to highlight code ```python
def function(foo):
print(foo)
``` - put returns between paragraphs
- for linebreak add 2 spaces at end
- _italic_ or **bold**
- indent code by 4 spaces
- backtick escapes
`like _so_` - quote by placing > at start of line
- to make links (use https whenever possible) <https://example.com>[example](https://example.com)<a href="https://example.com">example</a>
How to Tag
A tag is a keyword or label that categorizes your question with other, similar questions. Choose one or more (up to 5) tags that will help answerers to find and interpret your question.
- complete the sentence: my question is about...
- use tags that describe things or concepts that are essential, not incidental to your question
- favor using existing popular tags
- read the descriptions that appear below the tag
If your question is primarily about a topic for which you can't find a tag:
- combine multiple words into single-words with hyphens (e.g. python-3.x), up to a maximum of 35 characters
- creating new tags is a privilege; if you can't yet create a tag you need, then post this question without it, then ask the community to create it for you
lang-java