1 package org.hibernate.event; 3 4 import java.io.Serializable ; 5 6 import org.hibernate.persister.entity.EntityPersister; 7 8 13 public class PreDeleteEvent { 14 private Object entity; 15 private EntityPersister persister; 16 private Serializable id; 17 private Object [] deletedState; 18 19 public Object getEntity() { 20 return entity; 21 } 22 public Serializable getId() { 23 return id; 24 } 25 public EntityPersister getPersister() { 26 return persister; 27 } 28 public Object [] getDeletedState() { 29 return deletedState; 30 } 31 32 public PreDeleteEvent( 33 Object entity, 34 Serializable id, 35 Object [] deletedState, 36 EntityPersister persister 37 ) { 38 this.entity = entity; 39 this.persister = persister; 40 this.id = id; 41 this.deletedState = deletedState; 42 } 43 44 } 45 | Popular Tags |