Questions tagged [orphan]

Orphan refers to code or data which exists outside of its intended context.

Orphan can be used to to describe:

  • processes
  • markup
  • words
  • plugins
  • branches
  • threads
  • records
  • tags
  • diagrams
  • APIs
  • URLs

References

103 questions
34
votes
7 answers

Hibernate deleting orphans when updating collection

I'm finding that orphan records aren't being deleted when removing from a collection in Hibernate. I must be doing something simple wrong, (this is Hibernate-101!), but I can't find it.. Given the following: public class Book { @ManyToOne …
Marty Pitt
  • 28,822
  • 36
  • 122
  • 195
23
votes
2 answers

Prevent Hibernate from deleting orphaned entities while merging an entity having entity associations with orphanRemoval set to true

Taking a very simple example of one-to-many relationship (country -> state). Country (inverse side) : @OneToMany(mappedBy = "country", fetch = FetchType.LAZY, cascade = CascadeType.ALL, orphanRemoval = true) private List
Tiny
  • 27,221
  • 105
  • 339
  • 599
19
votes
2 answers

Git Merge commits into an orphan branch

I'm curious to know if you CAN and if there is anything wrong with merging commits INTO my orphan branch. For this specific instance my Salesforce repository has a master branch and a pre-release branch but because our sandbox environment often has…
Xtremefaith
  • 907
  • 1
  • 9
  • 29
15
votes
2 answers

JPA 2.0 / Hibernate and "orphanRemoval": Just replacing an entity does not remove the old one

I have question regarding JPA 2.0, Hibernate and "orphanRemoval". First my setup: Spring 3.0.5.RELEASE SprnigData JPA 1.0.1.RELEASE Hibernate 3.5.2-Final DBMS: PostgreSQL 9.0 I have two rather simple entity classes, "User" and "AvatarImage", A…
It's Leto
  • 968
  • 4
  • 17
  • 25
15
votes
2 answers

JPA 2 / Hibernate orphan removal still not working with @OneToMany?

I'm trying to use orphanRemoval in Hibernate 4.3.5 / JPA2 objects but it does not seem to be working as I expected. I am not sure, however, if I am doing something incorrect, or if this is still a bug in Hibernate. Given the following relationships…
Eric B.
  • 23,425
  • 50
  • 169
  • 316
12
votes
1 answer

Does cascade="all-delete-orphan" have any meaning in a Hibernate unidirectional many-to-many association with a join table?

I have two objects which form a parent-child relationship which have a many-to-many relationship. Following the recommendations in the Hibernate reference manual, I have mapped this using a join table:
matt b
  • 138,234
  • 66
  • 282
  • 345
12
votes
2 answers

Orphans remain in database even with orphanRemoval=true on one-to-many relationship (JPA/Hibernate)

@Entity @Inheritance(strategy = InheritanceType.SINGLE_TABLE) @Table(name = "company_policies") @DiscriminatorColumn(name = "rule_name") public abstract class AbstractPolicyRule implements Serializable { @Transient private static final long…
Josh
  • 2,842
  • 8
  • 45
  • 51
12
votes
1 answer

Python multiprocessing and independence of children processes

From the python terminal, I run some command like the following, to spawn a long-running child process: from multiprocessing.process import Process Process(target=LONG_RUNNING_FUNCTION).start() This command returns, and I can do other things in the…
Zags
  • 37,389
  • 14
  • 105
  • 140
9
votes
2 answers

Hibernate - One to many relationship and orphanRemoval cascade

I have a basic one to many relation parent / child like in the chapter 21 of Hibernate references book. The cascade is only from child to parent (persist cascade only because I don't want to delete the parent if I delete a child). When I add a child…
Cedric Thiebault
  • 1,015
  • 1
  • 15
  • 28
8
votes
3 answers

process re-parenting: controlling who is the new parent

Is the new parent always "init" or is there some way to control who gets to be the new parent? Wikipedia seems indicates that it's always "init". I really hope that this is not the case. I have tried everything I can think of with setpgid and…
neoneye
  • 50,398
  • 25
  • 166
  • 151
7
votes
2 answers

How to avoid orphan word on a line with css?

What I mean with orphans word is a single word on a line. Possible with help of CSS to avoid any line with only one word? For example SERUM is an orphand word: ECSTASY OF EXISTENCE FIRMING ANTIOXIDANT BODY SERUM It should look like this…
Isak La Fleur
  • 4,428
  • 7
  • 34
  • 50
7
votes
2 answers

Difference between a Daemon process and an orphan process?

I am confused with daemon process and orphan process. From what I have learnt: Daemon Process: "These are special processes that run in background. They are system related process that have no associated terminal.These processes run with root…
Sai Raman Kilambi
  • 878
  • 2
  • 12
  • 29
7
votes
3 answers

How do I optimize my stylesheet by removing unmatched and/or unnecessary CSS selectors

I have inherited a massive stylesheet with many thousand selectors and I'm certain that a good number of them are unnecessary and never actually match elements on the site. In the interests of optimizing, I'd like to remove those orphaned…
Jonathan Day
  • 18,519
  • 10
  • 84
  • 137
7
votes
1 answer

Setting orphanRemoval to true while migrating children from their parent to another parent

Important Notice : If you are reading this post, then consider looking into this post too for in-depth discussions. It is a quite usual practice/situation/requirement where children of a parent may be migrated to another parent. What happens, if…
Tiny
  • 27,221
  • 105
  • 339
  • 599
7
votes
1 answer

Pull Requests for orphan branch

I'm working with a friend on a little project hosted at github. What is special about this project is that we would like to use lots of orphan branches. But it seems we can't do pull request for such branches!? Github complains that the branches…
Jens Schauder
  • 77,657
  • 34
  • 181
  • 348
1
2 3 4 5 6 7