Questions tagged [object-graph]

90 questions
0
votes
0 answers

Using Automapper to map from DTOs to Object Graphs with Parent Child Relationships

I'm trying to determine if Automapper is a viable option for constructing parent/child object graphs from basic DTO collections, and I'm having trouble tracking down an example of the sort of approach I'm hoping for. For example, I have the…
Maff
  • 54
  • 4
0
votes
0 answers

Entity Data Filtering - payara41-web-4.1.1.164 with Jersey - How to ObjectProvider

I am trying to obtain the ObjectProvider in a MessageBodyReader. But it ends up with the and CDI-Error: "WELD-001334: Unsatisfied dependencies for type ObjectProvider with qualifiers @Default". The idea is to map the ObjectProvider from Jersey to a…
0
votes
1 answer

Measure the Positional stability of a Class using reflection api

As part of a project for college we are required to " create a Java application that uses reflection to analyse an arbitrary Java Application Archive (JAR) and calculates the positional stability of each of the component classes in its object graph…
DevRight
  • 345
  • 1
  • 6
  • 25
0
votes
2 answers

How do I carry a complex object model through a POST request

I have the following entity models: public class AssetLabel { public string QRCode { get; set; } public string asset { get; set; } public virtual IEnumerable Conversations { get; set; } } public class Conversation { …
Aaron Reese
  • 131
  • 11
0
votes
2 answers

Dynamically Building Object Graph

I have an endpoint that allows me to get the top node of my graph. I also allow the client to specify the nodes he wishes to retrieve that are children of the top node: For example: /libraries/5?with=banner|videos This will retrieve me a library…
joepour
  • 6,831
  • 10
  • 32
  • 29
0
votes
2 answers

How do I serialize/deserialize a NHibernate entity that has references to other objects?

I have two NHibernate-managed entities that have a bi-directional one-to-many relationship: public class Storage { public virtual string Name { get; set; } public virtual IList Boxes { get; set; } } public class Box { public…
Daniel T.
  • 37,212
  • 36
  • 139
  • 206
0
votes
1 answer

Core Data "Deep Copy" between 2 MOC, handle To-Many relationship, using KVC collection proxy object

I am trying to perform a “deep copy” of managed objects from a source persistent store to an existing persistent store. Borrowing code for the Task to establish To-Many Relationship in Target-Context. The complete code is available Here My…
J-Q
  • 374
  • 5
  • 15
0
votes
1 answer

How to eager load in WCF Ria Services/Linq2SQLDomainModel

I have a databound grid at my view (XAML) and the Itemsource points to a ReportsCollection. The Reports entity has three primitives and some complex types. These three are shown as expected at datagrid. Additionally the Reports entity has a property…
0
votes
1 answer

Dagger: how to instantiate different ObjectGraphs depending on the build

I'm trying to learn Dependency Injection using Dagger. I understand that in your classes, you won't directly instantiate the object your client code depends on, but declare it with @Inject, create a ObjectGraphs via a Module, and get the object from…
GaRRaPeTa
  • 5,459
  • 4
  • 37
  • 61
0
votes
0 answers

Including Object Metadata in the Serialized output of an Object Graph

Requirement: I need to dump the object graph of a Java application at various points of time during the application's execution. But most importantly, the dump needs to contain metadata for all objects in the graph e.g. the reference ids as obtained…
vijay
  • 2,646
  • 2
  • 23
  • 37
0
votes
1 answer

Flexibility with eager loading huge object graphs, NHibernate HQL TOP N in SQL

I need to pass POCO Domain objects (eagerly loaded). Having analyzed both Entity Framework and NHibernate, I can't find a solution! Analyzing the underlying SQL and queries by NHibernate, I discovered that ISession.CreateQuery (string…
0
votes
1 answer

Archiving NSArray that contains dictionaries

I am trying to save an NSMutableArray in CoreData. The Array contains objects NSDictionary NSDictionary has following Structure valueDict = { FloorId = F0001; endCoordinates = "NSPoint: {541, 413}"; linePath = "
ila
  • 920
  • 12
  • 35
0
votes
1 answer

Drools JPA entity object graph updating

When defining Drools rules, what is the best way to accommodate object graphs? Say I have the following Entity object graph with a many-to-many relationship: User <- Group -> Value and I have the following contrived rule: rule "hasPurpleValue" …
John Ericksen
  • 10,995
  • 4
  • 45
  • 75
0
votes
1 answer

Drools object graph rule definition

I have an object graph that I am trying to generate Fulfillment object from in Drools. Specifically, Fulfillment objects represent a rule that is either satisfied, or unsatisfied. My object graph looks like the following: Users ---> many…
John Ericksen
  • 10,995
  • 4
  • 45
  • 75
-2
votes
1 answer

C# .Net Traversing an object graph

I have found this method written by Eric Lippert to traverse an object graph: static IEnumerable Traversal(T item, Func> children) { var seen = new HashSet(); var stack = new Stack(); seen.Add(item); …
Daniel Billingham
  • 1,391
  • 5
  • 15
  • 25
1 2 3 4 5
6