hi,
i got a probleme when in want to delete an item, i want a true delete but in my console, i only got this :
Code:
update TechnicalSkillOnsItem set parent=null where parent=? and id=?
it only sets null to the item but it does not delete it
my mapping :
Code:
class TItem
@OneToMany(cascade = CascadeType.MERGE)
@JoinColumn(name="parent")
@Cascade(org.hibernate.annotations.CascadeType.DELETE_ORPHAN)
private List<TItem> children;
@ManyToOne(cascade=CascadeType.MERGE)
@JoinColumn(name="parent")
@Cascade(org.hibernate.annotations.CascadeType.DELETE_ORPHAN)
private TItem parent;
@ManyToOne(cascade=CascadeType.MERGE)
@JoinColumn(name="tItemName")
private TItemName tItemName;
so i got an objet TItem who got children
i want to delete a child, so i remove a child to my TItem (which is its parent) and save the parent
thx for helps ;)