Related to #1
Resolves #1
Resolves #5
Rename orderInTrainingDefinition field to order in BaseLevel entity, set trainingDefinitionId when creating a new entity