The following doesn\'t work:
@Entity
class Owner {
@OneToMany(mappedBy=\"owner\", cascade = {CascadeType.ALL})
protected Set getBSet() {
..
}
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 getBSet() {
..
}
}