I have 2 classes, class A with the follwing relationship:
@OneToMany(mappedBy = "aaa", cascade = CascadeType.ALL, orphanRemoval = true)
private List<B> bbb = new ArrayList<B>();
and class B:
@ManyToOne
@JoinColumn(name = "aaa", nullable = false)
private A aaa;
However when I try to delete an entity of class B nothing happens. I'm not getting any errors and no SQL-Statements get executed.
B b = em.find(B.class, id)
em.remove(b);
Anything I am obviously doing wrong here?