Hibernate uses mapping metadata to find out how to load and store objects of the persistent class.
Will this work - @OneToOne() @JoinColumn(name = "id", referencedColumnName = "type_id") @Where(clause = "type_name = OBJECTIVE") public NoteEntity getObjectiveNote() { return …
java hibernate hibernate-mapping hibernate-annotations