I am new to HQL and trying to write a query that involves two entities. This is legacy code and adding the @OneToOne relationship to the FirstEntity
@OneToOne
FirstEntity