The following doesn\'t work:
@Entity
class Owner {
@OneToMany(mappedBy=\"owner\", cascade = {CascadeType.ALL})
protected Set getBSet() {
..
}
I'd double check your real implementation. I used your sample code and after adding an @Id everything worked as expected. Even IntelliJ says getBSet() is associated with B.owner.
Try adding targetEntity = Transaction.class. This worked for me when I was using SINGLE_TABLE inheritance. I didn't try it with JOIN.
@Entity
class Owner {
@OneToMany(mappedBy="owner", cascade = {CascadeType.ALL}, targetEntity = Transaction.class)
@Where(clause = "tableType='I'")
protected Set<B> getBSet() {
..
}
}
It's a Hibernate oddity, but it's deliberate. I have a blog post up with background information, links and a workaround for the JOINED solution.