Correction:
{code:java} private void bindPersistenceUnit(ParsedPersistenceXmlDescriptor persistenceUnit, Element persistenceUnitElement) { Comment obsolete . Please delete . . persistenceUnit.setExcludeUnlistedClasses( !isJpaGte20 ); NodeList children = persistenceUnitElement.getChildNodes(); for ( int i = 0; i < children.getLength() ; i++ ) { ... else if ( tag.equals( "exclude-unlisted-classes" ) ) { persistenceUnit.setExcludeUnlistedClasses( extractBooleanContent(element, !isJpaGte20) ); } ... } } ... private static boolean extractBooleanContent(Element element, boolean defaultBool) { String content = extractContent( element, null ); if (content != null && content.length() > 0) { return Boolean.valueOf(content); } return defaultBool; }{code}
|