cognitics commented on Bug HHH-4591

Copy the needed property relation to your entity.

@ManyToOne
@JoinColumn(name = "column_name", insertable = false, updatable = false)
private EntityX entityX;

now you can directy create the alias, instead of using the composite id property.

criteria.createCriteria("entity.entityX", "entityX")
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira