Questions tagged [hierarchy]

For issues relating to creating, maintaining, or displaying a hierarchy of data or resources, etc.

A hierarchy is an arrangement of items (objects, names, values, categories, resources, etc.) in which the items are represented as being "above," "below," or "at the same level as" one another. Abstractly, a hierarchy is simply an ordered set or an acyclic directed graph.

A hierarchy can link entities either directly or indirectly, and either vertically or horizontally. The only direct links in a hierarchy, insofar as they are hierarchical, are to one's immediate superior or to one of one's subordinates, although a system that is largely hierarchical can also incorporate alternative hierarchies. Indirect hierarchical links can extend "vertically" upwards or downwards via multiple links in the same direction, following a path. All parts of the hierarchy which are not linked vertically to one another nevertheless can be "horizontally" linked through a path by traveling up the hierarchy to find a common direct or indirect superior, and then down again.

2838 questions
669
votes
38 answers

Attempt to present UIViewController on UIViewController whose view is not in the window hierarchy

Just started using Xcode 4.5 and I got this error in the console: Warning: Attempt to present < finishViewController: 0x1e56e0a0 > on < ViewController: 0x1ec3e000> whose view is not in the window hierarchy! The view is still being presented and…
Kyle Goslan
  • 10,748
  • 7
  • 26
  • 41
432
votes
3 answers

How to view hierarchical package structure in Eclipse package explorer

OK here's what I would like: in the Eclipse package explorer, I see the following: (dot represents a clickable arrow that I can use to expand the folder) PROJECT Source Folder Package Class…
Philip
  • 7,253
  • 3
  • 23
  • 31
213
votes
15 answers

Getting activity from context in android

This one has me stumped. I need to call an activity method from within a custom layout class. The problem with this is that I don't know how to access the activity from within the layout. ProfileView public class ProfileView extends LinearLayout { …
OVERTONE
  • 11,797
  • 20
  • 71
  • 87
114
votes
2 answers

JPA: How to have one-to-many relation of the same Entity type

There's an Entity Class "A". Class A might have children of the same type "A". Also "A" should hold it's parent if it is a child. Is this possible? If so how should I map the relations in the Entity class? ["A" has an id column.]
sanjayav
  • 4,896
  • 9
  • 32
  • 30
99
votes
5 answers

Moving a git repository up one hierarchy level

Git beginner question: I have a small private webproject which is versioned locally with msysgit. There is no exterior repository, as it's only for me, so i can bascially do whatever I want. I've had this set up in the project directory, ie in…
Sorcy
  • 2,587
  • 5
  • 26
  • 34
90
votes
17 answers

Warning: Attempt to present * on * whose view is not in the window hierarchy - swift

I'm trying to present a ViewController if there is any saved data in the data model. But I get the following error: Warning: Attempt to present * on *whose view is not in the window hierarchy" Relevant code: override func viewDidLoad() { …
Nils Wasell
  • 987
  • 1
  • 8
  • 10
76
votes
4 answers

How should I deal with object hierarchies in a RESTful API?

I am currently designing the API for an existing PHP application, and to this end am investigating REST as a sensible architectural approach. I believe I have a reasonable grasp of the key concepts, but I'm struggling to find anybody that has…
paulkmoore
  • 3,253
  • 2
  • 21
  • 20
64
votes
3 answers

SQL Server OPENJSON read nested json

I have some json that I would like to parse in SQL Server 2016. There is a hierarchy structure of Projects->Structures->Properties. I would like to write a query that parses the whole hierarchy but I don't want to specify any elements by index…
Slade
  • 2,311
  • 3
  • 21
  • 25
49
votes
3 answers

SQL Server: How to get all child records given a parent id in a self referencing table

Hi I have a table which references itself and I need to be able to select the parent and all it's child records from a given parent Id. My table is as follows: ID | ParentID | Name ----------------------- 1 NULL …
Matthew Dresser
  • 11,273
  • 11
  • 76
  • 120
48
votes
9 answers

SQL - How to store and navigate hierarchies?

What are the ways that you use to model and retrieve hierarchical info in a database?
realcals
  • 1,692
  • 2
  • 19
  • 20
48
votes
2 answers

How can I list all classes loaded in a specific class loader

For debug reasons, and curiosity, I wish to list all classes loaded to a specific class loader. Seeing as most methods of a class loader are protected, what is the best way to accomplish what I want? Thanks!
Yaneeve
  • 4,751
  • 10
  • 49
  • 87
46
votes
1 answer

How to design a hierarchical role based access control system

Basic deal is, we have a custom built "kickstart" for our projects. For this we are looking at redoing the user control. I know there are a lot of questions out there about general rbac, but I cannot find any on hierarchical rbac? Our requirements…
Hailwood
  • 89,623
  • 107
  • 270
  • 423
40
votes
2 answers

How to mix inheritance strategies with JPA annotations and Hibernate?

According to the Hibernate Reference Documentation it should be possible to mix different inheritance mapping strategies when using Hibernate's…
Meeque
  • 703
  • 1
  • 6
  • 7
36
votes
14 answers

Eclipse The hierarchy of the type ... is inconsistent with @Configurable annotation

I am developing a Spring/Vaadin/Hibernate application. Everything works but I still have the following error markers in Eclipse STS 2.8.1: The hierarchy of the type BankView is inconsistent The hierarchy of the type AbstractEntityView is…
c4k
  • 4,270
  • 4
  • 40
  • 65
36
votes
3 answers

Object Browser inside the Android Studio

I need to navigate through the whole android api objects inside the Android Studio to find out classes that extend an individual class and also list of class and interfaces that is extended by an individual class in a hierarchy form. In a simple…
Hamid Behnam
  • 961
  • 1
  • 11
  • 16
1
2 3
99 100