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

2016-08-18 Thread David Daniel
So copy could work for immutability but it limits my ability to help the client (which is normally me and I am definitely stupid enough to not think about how I designed the system) but it doesn't help with how to add mutability of data objects transferred between services. I do think I may be

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

2016-08-18 Thread David Leangen
David D., No! You just need to copy the DTO. Let the client do whatever it wants with the DTO; it won’t mess up the system. If the client is “stupid” enough to change the value of the DTO, then that’s the client’s problem. There is no more worry about immutability / value object. There are

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

2016-08-18 Thread David Daniel
So for the article above what I am struggling with is how to do immutability/mutability with the DTO spec. With java beans there is a get and set method for each attribute. If DTO's had this the way I would do it is as follows. I would have an attribute for mutability that is either true or

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

2016-08-18 Thread David Daniel
For me helps by having the schema that allows for something some other service uses to do the automatic merging using the tools available in dosgi, but I understand that nothing can be really automatic because it can require merges and there is garbage collection that will need to happen on the

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

2016-08-18 Thread David Bosschaert
Hi Davids, What is it exactly from that article that you think would make sense in the context of OSGi? The automatic merging of concurrent data updates? Thanks, David On 18 August 2016 at 07:50, David Leangen wrote: > > That is interesting, indeed! I only quickly skimmed

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

2016-08-18 Thread David Leangen
That is interesting, indeed! I only quickly skimmed through the article, but it does indeed appear to be a potentially interesting property for dosgi. If I believe what the authors write in the abstract, it provides a relatively simple and deterministic method that could be implemented in

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

2016-08-17 Thread David Daniel
read an interesting article this morning http://arxiv.org/abs/1608.03960 Something like this would be an interesting property to have for dosgi which is one of the use cases for DTO's On Wed, Aug 17, 2016 at 6:47 AM, David Leangen (JIRA) wrote: > > [

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

2016-08-17 Thread David Leangen (JIRA)
[ https://issues.apache.org/jira/browse/FELIX-5325?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15424288#comment-15424288 ] David Leangen commented on FELIX-5325: -- Awesome. Thank you! :-) > Patch for embedded DTO (in DTO) >

[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

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

2016-08-15 Thread David Leangen (JIRA)
[ https://issues.apache.org/jira/browse/FELIX-5325?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15421859#comment-15421859 ] David Leangen commented on FELIX-5325: -- Sent offline. Cheers. > Patch for embedded DTO (in DTO) >

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

2016-08-15 Thread David Bosschaert (JIRA)
[ https://issues.apache.org/jira/browse/FELIX-5325?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15421017#comment-15421017 ] David Bosschaert commented on FELIX-5325: - Hi [~dleangen], thanks for the patch. Strange that you

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

2016-08-15 Thread David Leangen (JIRA)
[ https://issues.apache.org/jira/browse/FELIX-5325?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15420937#comment-15420937 ] David Leangen commented on FELIX-5325: -- I cannot attach files, so I will paste it in a comment. >

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

2016-08-15 Thread David Leangen (JIRA)
[ https://issues.apache.org/jira/browse/FELIX-5325?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15420938#comment-15420938 ] David Leangen commented on FELIX-5325: -- Index: