tomer doron
unread,Mar 9, 2011, 9:12:08 PM3/9/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Lift
i have a simple one to many relationship with cascade mixed it,
however, when deleting the parent item, the children are not deleted
and I am not able to undersand why. i did some other thread regarding
this topic, but could not figure out what the bottom line was.
here is how the relationship is defined.
on parent (CatalogItem):
object pearls extends MappedOneToMany(CatalogItemPearl,
CatalogItemPearl.catalogItem) with Owned[CatalogItemPearl] with
Cascade[CatalogItemPearl]
on child (CatalogItemPearl):
object catalogItem extends LongMappedMapper(this, CatalogItem)
{
override def dbColumnName = "catalog_item_id"
override def dbNotNull_? = true
}