Bug in Jmix 3.0 data-model

When I want to display the data-model I get the following error.

IllegalStateException: Annotation ‘JoinColumn’ is not present on field: ‘TTaxaLinkEndangered.tleTypeValue’

This is somehow true

@NotNull
@JoinColumns({
		@JoinColumn(name = "tleCatalogName", referencedColumnName = "tetCatalogName", nullable = false, insertable = false, updatable = false),
		@JoinColumn(name = "tleTypeValue", referencedColumnName = "tetTypeValue", nullable = false, insertable = false, updatable = false)
})
@ManyToOne(fetch = FetchType.LAZY, optional = false)
private TTaxaEndangeredType tleTypeValue;

There are 2 of them.

The data-model does this not support ?

Regards

Felix

Hi, Felix!

Thank you for reporting a problem! I’ve created a GitHub issue for this case: Data Model view fails for entities with a composite foreign key via JoinColumns · Issue #5534 · jmix-framework/jmix · GitHub