AccessorMapper<T>.prepare() loses exception details

Description

From github pr#576:

AccessorMapper<T>.prepare() catches/rethrows exceptions but
loses the details of the original exception. Instead, the
meaningful content of the exception is reduced to:

Error preparing queries for accessor

This patch appends the original exception text to the
message to produce a meaningful exception such as:

Error preparing queries for accessor Dao :
java.lang.RuntimeException: Cannot map return of method
public abstract java.util.Iterator ... to unsupported type
java.util.Iterator<...>

Environment

None

Pull Requests

None

Status

Assignee

Unassigned

Reporter

Andy Tolbert

Labels

None

PM Priority

None

Affects versions

None

Fix versions

Doc Impact

None

Size

None

External issue ID

None

External issue ID

None

Priority

Major
Configure