在persistence.xml中有一个属性:
property name =“openjpa.jdbc.DBDictionary”value =“oracle(StoreCharsAsNumbers = false,supportsSetClob = true,MaxEmbeddedClobSize = -1)”/>
获取低于错误的数据时:
引起:org.apache.openjpa.lib.util.ParseException:设置配置插件选项“DBDictionary”时出错。该插件的类型为“class com.ibm.ws.persistence.jdbc.sql.OracleDictionary”。插件属性“supportsSetClob”没有相应的setter方法或可访问字段。插件属性与“SupportsHaving”紧密匹配;也许该财产拼写错误。确保插件配置字符串使用与插件类中的setter方法对应的键值。所有可能的插件属性包括:[AllowAliasInBulkClause,Array,ArrayTypeName,AsciiStream,AutoAssignClause,AutoAssignSequenceName,AutoAssignTypeName,BatchLimit,BigDecimal,BigInteger,BigintTypeName,BinaryStream,BinaryTypeName,BitLengthFunction,BitTypeName,Blob,BlobBufferSize,BlobObject,BlobTypeName,Boolean,BooleanTypeName,Byte ,Bytes,CONS_NAME_AFTER,CONS_NAME_BEFORE,CONS_NAME_MID,Calendar,CastType,CatalogSeparator,Char,CharTypeName,CharacterColumnSize,CharacterStream,CheckVersionStrategy,Clob,ClobBufferSize,ClobString,ClobTypeName,ClosePoolSQL,ConcatenateDelimiter,ConcatenateFunction,ConstraintNameMode,CreatePrimaryKeys,CrossJoinClause,CurrentDateFunction,CurrentTimeFunction,CurrentTimestampFunction ,Date,DatePrecision,DateTypeName,DecimalTypeName,DefaultBatchLimit,DistinctCountColumnSeparator,DistinctTypeName,Double,DoubleTypeName,DriverVendor,DropTableSQL,FixedSizeTypeNames,Float,FloatTypeName,ForUpdateClause,GetString瓦尔,IgnoreSQLExceptionOnSetQueryTimeout,InClauseLimit,InitializationSQL,InnerJoinClause,INT,IntegerTypeName,JavaObjectTypeName,JoinSyntax,LastGeneratedKeyQuery,现场,龙,LongVarbinaryTypeName,LongVarcharTypeName,MaxAutoAssignNameLength,MaxColumnNameLength,MaxConstraintNameLength,MaxEmbeddedBlobSize,MaxEmbeddedClobSize,MaxIndexNameLength,MaxIndexesPerTable,MaxTableNameLength,NativeSequenceType,NextSequenceQuery,空, NullTypeName,数字,NumericTypeName,对象,Openjpa3GeneratedKeyNames,OtherTypeName,OuterJoinClause,平台,RangePosition,RealTypeName,参考文献,RefTypeName,ReportsSuccessNoInfoOnBatchUpdates,RequiresAliasForSubselect,RequiresAutoCommitForMetaData,RequiresCastForComparisons,RequiresCastForMathFunctions,RequiresConditionForCrossJoin,RequiresSearchStringEscapeForLike,RequiresTargetForDelete,ReservedWords,SCHEMA_CASE_LOWER,SCHEMA_CASE_PRESERVE,SCHEMA_CASE_UPPER,SELECT_HINT, SYNTAX_DATABASE,SYNTAX_SQL92,SYNTAX_TRADITIONAL,SchemaCas E,SearchStringEscape,SelectWords,SequenceNameSQL,SequenceSQL,SequenceSchemaSQL,SetStringRightTruncationOn,短,SimulateLocking,SmallintTypeName,SqlStateCodes,StorageLimitationsFatal,StoreCharsAsNumbers,StoreLargeNumbersAsStrings,字符串,StringLengthFunction,StructTypeName,SubstringFunctionName,SupportsAlterTableWithAddColumn,SupportsAlterTableWithDropColumn,SupportsAutoAssign,SupportsCascadeDeleteAction,SupportsCascadeUpdateAction,SupportsComments,SupportsCorrelatedSubselect, SupportsDefaultDeleteAction,SupportsDefaultUpdateAction,SupportsDeferredConstraints,SupportsForeignKeys,SupportsHaving,SupportsLockingWithDistinctClause,SupportsLockingWithInnerJoin,SupportsLockingWithMultipleTables,SupportsLockingWithOrderClause,SupportsLockingWithOuterJoin,SupportsLockingWithSelectRange,SupportsModOperator,SupportsMultipleNontransactionalResultSets,SupportsNullDeleteAction,SupportsNullTableForGetColumns,SupportsNullTableForGetImportedKeys,SupportsNullTable ForGetIndexInfo,SupportsNullTableForGetPrimaryKeys,SupportsNullUpdateAction,SupportsQueryTimeout,SupportsRestrictDeleteAction,SupportsRestrictUpdateAction,SupportsSchemaForGetColumns,SupportsSchemaForGetTables,SupportsSelectEndIndex,SupportsSelectForUpdate,SupportsSelectStartIndex,SupportsSubselect,SupportsUniqueConstraints,SupportsXMLColumn,SystemSchemas,SystemTables,TableForUpdateClause,TableTypes,时间,TimeTypeName,时间戳,TimestampTypeName,TinyintTypeName,ToLowerCaseFunction,ToUpperCaseFunction, TrimBothFunction,TrimLeadingFunction,TrimSchemaName,TrimTrailingFunction,类型化的,未知的,UseGetBestRowIdentifierForPrimaryKeys,UseGetBytesForBlobs,UseGetObjectForBlobs,UseGetStringForClobs,UseSchemaName,UseSetBytesForBlobs,UseSetFormOfUseForUnicode,UseSetStringForClobs,UseTriggersForAutoAssign,VENDOR_DATADIRECT,VENDOR_ORACLE,VENDOR_OTHER,ValidationSQL,VarbinaryTypeName,VarcharTypeName,VersionColumnIntegerSyntax,VersionColumnTableSyntax,VersionCo lumnTimestampSyntax,XmlTypeName,_defaultBatchLimit]。
请建议。
答案 0 :(得分:1)
如果您运行的是openjpa 2.2.0或更高版本,请将其删除。 我的意思是,摆脱这一部分:
,supportsSetClob=true
检查出来:
http://openjpa.apache.org/builds/2.2.2/apache-openjpa/docs/jpa_2.2.html#jpa_2.2_SupportsSetClob
医生说不再需要了。
PS:这同样适用于IBM的oracle DBDictionary实现。