changed id generation strategy; added fetchType and cascade