Customize Entity Inspector fetch plan

Hi everyone,
my software has an entity I would like to update with “Entity Inspector” funcionality.

This entity has a @JmixProperty that @DependsOnProperties which is an entity @OneToOne(fetch = FetchType.LAZY).

@JmixEntity
@Table(name = "PERSON")
@Entity(name = "NVA_Person")
public class Person {
	@JmixGeneratedValue
	@Column(name = "ID", nullable = false)
	@Id
	private UUID id;
	
	@JoinColumn(name = "ID_HOUSE")
	@OneToOne(fetch = FetchType.LAZY)
	private House house;
	
	...
	
	@DependsOnProperties({"house"})
	@JmixProperty
	public Boolean hasAddress() {
		return house != null && house.getAddress()  != null;
	}
}

When I select this entity, the following error occurs:

Cannot get unfetched attribute [address] from detached object it.test.myapp.entity.House-072d04c6-66da-a1f0-4542-3a99b6523ad3 [detached].

How can I specify a Fetch Plan?

Hi,

  1. Which Jmix version do you use?
  2. Please provide a full exception stacktrace