/** * Prepares the save call using the given requested id. * * @param entity The entity to be saved. * @param requestedId The id to which to associate the entity. * @param entityName The name of the entity being saved. * @param anything Generally cascade-specific information. * @param source The session which is the source of this save event. * * @return The id used to save the entity. */ protected Serializable saveWithRequestedId( Object entity, Serializable requestedId, String entityName, Object anything, EventSource source) { callbackRegistry.preCreate( entity ); return performSave( entity, requestedId, source.getEntityPersister( entityName, entity ), false, anything, source, true ); }
return performSave( entity, null, persister, true, anything, source, requiresImmediateIdAccess ); return performSave( entity, generatedId, persister, false, anything, source, true );
/** * Prepares the save call using the given requested id. * * @param entity The entity to be saved. * @param requestedId The id to which to associate the entity. * @param entityName The name of the entity being saved. * @param anything Generally cascade-specific information. * @param source The session which is the source of this save event. * * @return The id used to save the entity. */ protected Serializable saveWithRequestedId( Object entity, Serializable requestedId, String entityName, Object anything, EventSource source) { return performSave( entity, requestedId, source.getEntityPersister( entityName, entity ), false, anything, source, true ); }
/** * Prepares the save call using the given requested id. * * @param entity The entity to be saved. * @param requestedId The id to which to associate the entity. * @param entityName The name of the entity being saved. * @param anything Generally cascade-specific information. * @param source The session which is the source of this save event. * * @return The id used to save the entity. */ protected Serializable saveWithRequestedId( Object entity, Serializable requestedId, String entityName, Object anything, EventSource source) { return performSave( entity, requestedId, source.getEntityPersister( entityName, entity ), false, anything, source, true ); }
/** * Prepares the save call using the given requested id. * * @param entity The entity to be saved. * @param requestedId The id to which to associate the entity. * @param entityName The name of the entity being saved. * @param anything Generally cascade-specific information. * @param source The session which is the source of this save event. * * @return The id used to save the entity. */ protected Object saveWithRequestedId( Object entity, Object requestedId, String entityName, Object anything, EventSource source) { callbackRegistry.preCreate( entity ); return performSave( entity, requestedId, source.getEntityDescriptor( entityName, entity ), false, anything, source, true ); }
return performSave( entity, null, persister, true, anything, source, requiresImmediateIdAccess ); return performSave( entity, generatedId, persister, false, anything, source, true );
return performSave( entity, null, persister, true, anything, source, requiresImmediateIdAccess ); return performSave( entity, generatedId, persister, false, anything, source, true );
return performSave( entity, null, entityDescriptor, true, anything, source, requiresImmediateIdAccess ); return performSave( entity, generatedId, entityDescriptor, false, anything, source, true );