Questions tagged [object-graph]

90 questions
1
vote
1 answer

How Can I Convert Nested YAML to nested Arrays and OpenStructs in Ruby

How should I convert a series of nested hashes (nested to arbitrary depth) to a series of nested OpenStructs? I'm loading in a big YAML file and I'm not enjoying accessing['everything']['like']['this']. I have found a few partial solutions using…
Undistraction
  • 42,754
  • 56
  • 195
  • 331
1
vote
2 answers

Is it possible to view the Object Graph JAXB analyzes?

I have an existing complex object model that I am trying to marshall to JAXB xml. I don't want to change any of the existing domain classes if possible. I have this snippet working to marshall to a file (using Groovy) def marshallToFile(Object…
FGreg
  • 14,110
  • 10
  • 68
  • 110
1
vote
1 answer

Delete nsmanagedboject from context with many to many relationship core data iOS

My model have 2 Entity (Category and News) with many to many relationship: (It mean a category may have many news and a news article may belong to one or more Category). Below is my design: Entity 1: Category (attributes: categoryID, title, show,…
hahv
  • 582
  • 1
  • 4
  • 16
1
vote
1 answer

How can I represent a Hierarchy of Objects in an XML Schema in a way that is suitable for JAXB and Java

I have a data model that represents a taxonomy. The taxonomy is a hierarchy of categories, such as Food +- Pasta +- Spaghetti I would like to represent this as
Vihung
  • 12,947
  • 16
  • 64
  • 90
0
votes
1 answer

Object graph relationship

Why isnt this working...? I have a 'Client' entity and a 'Car' entity in a core data model. It is a one-to-many relationship. I have chosen a 'Client' from a table view controller and pushed a new table view controller which should display all Cars…
Ben Thompson
  • 4,743
  • 7
  • 35
  • 52
0
votes
1 answer

Cocoa – Core Data object graph

How do I handle the deletion of the following objects? What should my delete rules look like? Here's what my object graph looks like: Boss Boss-Department has a many-to-many-relationship If a Boss is deleted, the Departments belonging to that…
Peter Warbo
  • 11,136
  • 14
  • 98
  • 193
0
votes
1 answer

Traverse and find all given type instances within complex object graph

(using vb.Net 4.0) Say you have an object whose graph is fairly complex - it has properties, arrays and other collections, subclasses with their own properties and collections, etc. I want to fully traverse the entire object graph and find all…
Tekito
  • 840
  • 8
  • 24
0
votes
1 answer

NHibernate, Separate queries (using QueryOver) to populate complex object

We're using a database that doesn't support query batching so we can't make use of NHibernate Futures in this instance. We know we can still populate our complex object graph using multiple-queries (to avoid Cartesian products) but need advice if I…
paligap
  • 942
  • 1
  • 12
  • 28
0
votes
1 answer

Partial update of entity objects with EF 4

I'm implementing DAL and BL layers of application. It is hosted as WCF service, and EF 4 is used as ORM. We have role based security layer and business rule that only part of object can be updated by some particular role. Here is simplified example…
0
votes
3 answers

What is the difference between Object-Graph and a class diagram?

Is there a difference in the meaning of "class diagram" and "object graph"?
pencilCake
  • 51,323
  • 85
  • 226
  • 363
0
votes
0 answers

How to write data structure Graph using Java model class

A product can have distinctive sorts of attributes, and they can change with regard to items, such as a car can have taking after qualities: {cost, colour, price} and chair can have : {cost, width, profundity, stature}. Product attributes are…
Srinivas
  • 1
  • 1
0
votes
0 answers

Is Realm a Object Graph Manager along with its own implementation for a DBMS?

CoreData is an Object Graph Manager which can work with different store types, with SQLite being the most popular one as it is persistent. It provides graphs of 'NSManagedObject'. Is Realm also an Object Graph Manager as it provides graphs of…
Rohan Bhale
  • 1,323
  • 1
  • 11
  • 29
0
votes
1 answer

How to navigate the object graph using JPA Criteria API?

Suppose we have the following class graph: public final class Address { private final String streetAddress public String getStreetAddress() { return streetAddress; } } public final class House { private Address…
GuidoMB
  • 2,191
  • 3
  • 25
  • 40
0
votes
1 answer

Preventing the "serializing the whole world" issue for large object graph in SnakeYaml

We have a very large object graph (lazy loaded from the DB via DataNucleus ORM during normal program execution so no problem normally) but we only want to serialize a small portion of it with SnakeYaml - just a small subset of classes. There is a…
Volksman
  • 1,969
  • 23
  • 18
0
votes
1 answer

Documenting incomplete object graph of DTO object

The current architecture is based on WCF services which populate DTO objects from DB and return them. Some methods return complete object graph, some only partial. If completely populated, some object graphs would be extremely large - so that is not…
Leon
  • 3,311
  • 23
  • 20