Currently setAccessible() is called for all fields/properties/constructors, also in cases where it isn't needed (the members are public and accessible by ORM). Checking upfront will require users on Java 9 to not open up their entity packages towards ORM, but only to export them. See the discussion at http://lists.jboss.org/pipermail/hibernate-dev/2017-December/016899.html |