Questions tagged [object-graph]
90 questions
3
votes
1 answer
static analysis to find out all the referenced class from a root in java
In Java language. Given a root class, I want to find out all the classes referenced by the root(the whole object graph). Java Reflect is not sufficient. Because :
Class A{
List list = new ArrayList();
public void add(Object obj){
…

DON1101
- 83
- 3
2
votes
2 answers
Remove object from object graph while retaining integrity
In a Relational Database, what is the best way to handle removing an object from the object graph while still retaining referential integrity? At some point, this has to happen. Either through a soft or hard delete.
For example - when a product is…

Travis J
- 81,153
- 41
- 202
- 273
2
votes
1 answer
Disabling the EF Object graph for a query
Im doing caching in an application, on app start I pre-fetch a few million rows of data from a database and jam it into a local cache.
My problem is that during the fetch operation when I am loading all of that data via EF the object graph gets…

undefined
- 33,537
- 22
- 129
- 198
2
votes
2 answers
binding and configuration for webHttpBinding in RESTful service?
I'm new to WCF and am trying to get my head around the labyrinth of configurations the services take. I have a rest service that can return an export of a table, which it larger than the default maxReceivedMessageSize. So I'm been trying to play…

bryan
- 1,031
- 2
- 17
- 36
2
votes
2 answers
Facebook object graph https request from ruby
How would you do a request to Facebook object graph to get the user's friends?
If you type in the url it works in the browser (replaced by valid user_id and access…

Edijs Petersons
- 537
- 3
- 6
- 16
2
votes
3 answers
Building an object graph from flat object array in javascript
i have a javascript array of objects with objects that look like this:
itemId
name
parentItemId <== top level items with no parent have null value
I want to build a graph where the parent items contain arrays of children and those children…

billy jean
- 1,399
- 4
- 25
- 45
2
votes
1 answer
Binding managers through ObjectGraph in Intershop7
We have created a custom object manager and we would like to bind it to the implementation so we can inject the manager for our custom object handling into our cartridge pipelets.
We have created the Mgr interface and implementation and followed the…

Renato Dragišić
- 335
- 1
- 11
2
votes
1 answer
How to expose the state of the model’s object graph to the viewmodel?
I’m in the process of improving my understanding of the best practices of MVVM / dependency injection, and something that seems fundamental is still quite unclear.
Scenario:
The model (composed per the Composition Root pattern) consists of a DI…

Leaky
- 3,088
- 2
- 26
- 35
2
votes
1 answer
Alternate way to validate grandchild object in aggregate?
I have a graph of objects more than two levels deep. It represents an entity with children and grandchildren (an aggregate):
A → B → C
I want to validate at all levels of the graph. I know I can access A when validating B using an overload of…

Kit
- 20,354
- 4
- 60
- 103
2
votes
0 answers
What is scope of class annotated with @Singleton in Mortar
How does Mortar handle classes annotated with @Singleton? To clarify, when I use Dagger and have an Activity graph plus'd into the Application graph on every activity create, I also get an activity scoped singleton of any class that is annotated…

FriendlyMikhail
- 2,857
- 23
- 39
2
votes
1 answer
Pretty-print object hierarchy in Java?
I'm working on a data analytics project where we are representing a lot of the basic entities you find in a language. I'd like to find a better way to print out their object graphs though for debugging purposes though. So, for example, we might…

John Humphreys
- 37,047
- 37
- 155
- 255
2
votes
1 answer
Using a RESTFUL PUT, how should parent/child entities be updated (or informed)?
For a simple example, I'll use tires and cars. I intend to execute a PUT to increase the price of a tire. The UI also contains cars that use the tires being updated, therefore requiring a price update of their own.
Is it appropriate for the original…

scoots
- 715
- 4
- 16
2
votes
2 answers
Can I create a Core Data object graph in one application, then use it in another from a preset state?
My app as it stands now has a .plist of around 5,000 dictionaries which, at runtime, I use to create 5,000 objects of my custom class. Each one contains a few strings, some boolean values, etc. This is a fairly quick process, takes a few seconds,…

Luke
- 9,512
- 15
- 82
- 146
2
votes
1 answer
Pattern for recursively updating two related object graphs
Imagine I have an object model:
A Blog has many Articles, and an Article has many Comments
Imagine also that I have two blogs, Blog A and Blog B.
Blog A - Article id 1 - Comment id 1 "fun stuff"
- Article id 2 - Comment id 2 "cool"
and
Blog…

Allyl Isocyanate
- 13,306
- 17
- 79
- 130
2
votes
1 answer
How to handle duplicates in disconnected object graph?
I'm having a problem updating a disconnected POCO model in an ASP.NET application.
Lets say we have the following model:
Users
Districts
Orders
A user can be responsible for 0 or more districts, an order belongs to a district and a user can be the…

Ola Falck Sprauten
- 23
- 3