Re: [Converter] Data Tree Structures

2016-08-16 Thread David Leangen
Just another thought… From memory, one of the stated goals of DTOs is that the DTOs are really, in a way, nothing more than schema. Because of this, it should be (and is) trivial to convert to JSON, XML, YAML, or whatever. Well, if the DTO _is_ the data structure, then it should also be

[jira] [Commented] (FELIX-5320) Dependency Manager: adapter service propagates adaptee properties *after* the init (and start) callbacks are called

2016-08-16 Thread Pierre De Rop (JIRA)
[ https://issues.apache.org/jira/browse/FELIX-5320?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15422681#comment-15422681 ] Pierre De Rop commented on FELIX-5320: -- ... And in case you don't need to use a DM adapter, here is

Re: [Converter] Data Tree Structures

2016-08-16 Thread David Leangen
:-) Cheers, =David > On Aug 16, 2016, at 9:41 PM, David Daniel wrote: > > Now that I reread it I was completely off.\_('-')_/ I am sorry. > > On Tue, Aug 16, 2016 at 8:35 AM, David Daniel > wrote: > >> I think I understand

Re: [Converter] Data Tree Structures

2016-08-16 Thread David Daniel
Now that I reread it I was completely off.\_('-')_/ I am sorry. On Tue, Aug 16, 2016 at 8:35 AM, David Daniel wrote: > I think I understand better now. Thank you for the explanation as I am > still trying to get an understanding of DTO's and the converter and

Re: [Converter] Data Tree Structures

2016-08-16 Thread David Daniel
I think I understand better now. Thank you for the explanation as I am still trying to get an understanding of DTO's and the converter and how they can be used in my application. David Daniel On Tue, Aug 16, 2016 at 8:29 AM, David Leangen wrote: > > Hi David D., > > Thanks

Re: [Converter] Data Tree Structures

2016-08-16 Thread David Leangen
Hi David D., Thanks for your input. What you write makes sense, but I don’t think it really applies to what I am trying to suggest. All I am asking for is an introspective view on the DTO data tree structure, nothing more. Since this is being parsed anyway, this code provides the perfect

Re: [Converter] Data Tree Structures

2016-08-16 Thread David Daniel
In my opinion with the scenarios you described you are no longer describing the data but a persistence structure. Indexes are about duplicating the data so it can be retrieved faster given a storage structure and some idea of that structure is needed to create them. If the persisting side could

[jira] [Commented] (FELIX-5325) Patch for embedded DTO (in DTO)

2016-08-16 Thread David Bosschaert (JIRA)
[ https://issues.apache.org/jira/browse/FELIX-5325?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15422452#comment-15422452 ] David Bosschaert commented on FELIX-5325: - Hi [~dleangen], I think your patch is missing the

Re: [Converter] Data Tree Structures

2016-08-16 Thread David Bosschaert
Hi David, Do you mean something like the following: MyTopDTO { int someField; MySubDTO anotherDTO; } MySubDTO { String someString; } Then you'd like to be able to do: MyTopDTO dto = ...; // from somewhere Object stringVal = converter.toTree(dto).valueAt(dto, "anotherDTO/someString"); am

[Converter] Data Tree Structures

2016-08-16 Thread David Leangen
Hi! The Converter service does a lot of introspection and parsing of the DTO data structure. In many cases, a DTO is a very simple object structure. However, it can also be a very complex structure, too. According to my understanding of the objectives of the Converter, one important goal is