Re: Compuond objects

2015-11-09 Thread Jeroen van der Wal
day, November 5, 2015 11:20 AM > To: users > Subject: Re: Compuond objects > > Here's an example where a viewmodel uses a database view: > > > https://github.com/estatio/estatio/blob/master/estatioapp/dom/src/main/java/org/estatio/dom/invoice/viewmodel/InvoiceSummaryForInvoiceRun.

RE: Compuond objects

2015-11-09 Thread Cesar Lugo
there is a ViewModel that is not linked to a database view, and combines some of the objects in the app? Cesar. -Original Message- From: Jeroen van der Wal [mailto:jer...@stromboli.it] Sent: Thursday, November 5, 2015 11:20 AM To: users Subject: Re: Compuond objects Here's an example where

RE: Compuond objects

2015-11-09 Thread Cesar Lugo
ers; David Tildesley Subject: Re: Compuond objects Hi David, thanks for chipping in on this thread. To answer your last question, I think I agree very broadly with your analysis. More detail within... On 5 November 2015 at 20:08, David Tildesley <davo...@yahoo.co.nz> wrote: > Hi Cesar,

Re: Compuond objects

2015-11-09 Thread Dan Haywood
lto:d...@haywood-associates.co.uk] > Sent: Friday, November 6, 2015 2:03 AM > To: users; David Tildesley > Subject: Re: Compuond objects > > Hi David, > thanks for chipping in on this thread. To answer your last question, I > think I agree very broadly with your analysis. Mo

Re: Compuond objects

2015-11-06 Thread Dan Haywood
Hi David, thanks for chipping in on this thread. To answer your last question, I think I agree very broadly with your analysis. More detail within... On 5 November 2015 at 20:08, David Tildesley wrote: > Hi Cesar, > I think you are saying you currently have : > >

Re: Compuond objects

2015-11-05 Thread Dan Haywood
It is possible to map java domain classes to views instead of tables. Estatio has a couple of examples... perhaps Jeroen could dig out a link for you (I'm typing this on my phone). Alternatively, yes, you could use view models. These then programmatically combine the data. On your particular

RE: Compuond objects

2015-11-05 Thread Cesar Lugo
understood your last statement about view models and collections, perhaps I will when I dig a little more into this. Cesar. -Original Message- From: Dan Haywood [mailto:d...@haywood-associates.co.uk] Sent: Thursday, November 5, 2015 10:43 AM To: users Subject: Re: Compuond objects

Re: Compuond objects

2015-11-05 Thread Jeroen van der Wal
Here's an example where a viewmodel uses a database view: https://github.com/estatio/estatio/blob/master/estatioapp/dom/src/main/java/org/estatio/dom/invoice/viewmodel/InvoiceSummaryForInvoiceRun.java On 5 November 2015 at 17:42, Dan Haywood wrote: > It is

Compuond objects

2015-11-05 Thread Cesar Lugo
Hello. I have the need to create some objects that are compound from some other domain objects (similar to a "view" in a relational database, updatable views). Let's say I have Business with businessId and name properties, 1:n to another entity named BusinessLocation with properties