Yes, it’s supported.
The entity with compound key will have the id attribute of an embeddable type. The entity that has a reference to it will have the transient attribute of this embeddable type plus persistent attributes corresponding to all individual attributes of the compound key.