added version property to mybuild.xml
added version property to mybuild.xml (generator)
fixed locking for to-many
make to-one relations more thread safe