haattila
(Hajnal Attila)
October 27, 2021, 1:35pm
1
Hello,
I have tree entities project.
House one-to-one composition to Address
Address many-to-on association to Street
On every entity I have instance name defined.
When generate screen to support CRUD operation in browse mode for House I got detached entity description and also in edit screen.
In a zip file attached a sample project.
How can I eliminate this behavior? This is a bug or something must be configured.
test01.zip (164.8 KB)
albudarov
(Alexander Budarov)
October 28, 2021, 6:40am
2
Hi,
In the Address entity you have this code:
@InstanceName
@DependsOnProperties({"code", "street"})
public String getInstanceName () {
return String.format("%s %s", code, street);
}
Passing street to the String.format leads to the instance name looking like on your screenshots.
Instead of passing “street”, use e.g. street.getInstanceName().