ModeShape/modeshape — pull request #236 by rhauch (2011-12-05 19:52:41+00:00)
Title: MODE-1327 Corrected JPA Source's use of RepositorySourceCapabilities

There were two places where `RepositorySourceCapabilities` objects were being constructed to replace the existing instance. These were removed and replaced with calls to the `capabilities.withCreatingWorkspaces(boolean)` and `capabilities.withUpdates(boolean)` methods (which properly construct and return a new instance).

All unit and integration tests pass with these changes.

Note that these changes should be applied to the 'master' and '3.x' branches.