SVN: Fixes for bug#223958 , 223247 getReference should return proxy
Changes:
- Changed getReference in EntityManager to return an unfetched object
(fetch group proxy) if the object is not in the cache.
- Added getReference API to UnitOfWork.
- Added getReference tests to JPA entity manager tests.
- Added target build.core.all to build scripts to avoid compiling
workbench (which takes forever).
- Changed core tests build script to jar tests (makes running tests on
other machines much, much easier)
- Fixed change tracking reset to work with fetch groups to avoid resume
fetching all unfetched objects.
- Add some CMP3Policy methods to CMPPolicy so they can be called without
casting/dependecy.
- Fixed fetch groups to disable change events while refreshing to avoid
update.
- Fixed some spelling.
- Fixed fetch groups to set fetch group before refreshing object to
avoid infinite loop.
- Fixed persist/create to ignore unfetched attributes to avoid fetching
all unfetched objects.
- Fixed uow locks to avoids traversing unfetched attributes to avoid
fetching all unfetched objects.
- Fixed refresh/revert to disable change events to avoid update.
- Cleaned up some methods in EntityManagerImpl.
Code review: Andrei (pending)