Merge branch 'master' of https://github.com/Activiti/Activiti
sourceActivity can never be null at this point.
- Added toString for debugging.
- More consistent member ordering.
Added toString for debugging. More consistent member ordering.
DbSqlSession: cleanup
ByteArrayEntity: added createAndInsert. getPersistentState should also take name into account, since UserEntity.setPicture can change it.
CreateAttachmentCmd: use ByteArrayEntity.createAndInsert.
ByteArrayEntityManagerL added findById.
Rewritten handling of ByteArrayEntities. Added unit test for custom variable type.
VariableScopeImpl: value was set twice.
Prevent JUnit "AssertionFailedError: No tests found". by making the base TestCase classes abstract.
VariablesTest improved.
ByteArrayEntity now has its own mapping file.
native query for HistoricVariableInstance
native query for HistoricDetail
HistoricVariableInstanceTest: added testChangeType.
Added helper class ByteArrayRef for transparently working with ByteArrays, and accompanying MyBatis TypeHandler.
CommandContextInterceptor: spelvoudt.
*VariableInstanceEntity: use ByteArrayRef.
Closes #80

Fixes an NPE when deploying a process from the modeler.
- UserEntity: use ByteArrayRef.
- SerializableType, Historic*QueryImpl: use getBytes() instead of getByteArrayValue().
- VariablesTest: calling setBytes multiple times does not work atm.
JobEntity: use ByteArrayRef.