You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@isis.apache.org by L Eder <ed...@gmail.com> on 2017/03/22 14:46:30 UTC
How can i specify the property that is displyed in a 1:1 association
Hi members:
Child class
In a parent-child object association, how could i have a derived
property in the child class being rendered
Re: How can i specify the property that is displyed in a 1:1 association
Posted by Jeroen van der Wal <je...@stromboli.it>.
Something like this?
public class Parent {
@Getter @Setter
private Child child;
public String getChildName() {
return getChild().getName();
}
}
public class Child {
@Getter @Setter
private String name;
}
On 22 March 2017 at 15:46, L Eder <ed...@gmail.com> wrote:
> Hi members:
>
> Child class
>
>
> In a parent-child object association, how could i have a derived
> property in the child class being rendered
>
Re: How can i specify the property that is displyed in a 1:1 association
Posted by Martin Hesse <mw...@gmail.com>.
That doesn't work AFAIK. Use the delegate pattern in the holding entity to
render the properties directly and then layout it to make it look like a
separate entity with the layout xml.
On Wed, Mar 22, 2017 at 9:46 PM, L Eder <ed...@gmail.com> wrote:
> Hi members:
>
> Child class
>
>
> In a parent-child object association, how could i have a derived
> property in the child class being rendered
>