| Use OpenJPA property values instead of Kodo-specific property values |
WebLogic used Kodo instead of OpenJPA for its JPA 1.0 provider implementation. This rule converts kodo-specific property values to OpenJPA. This rule detects kodo-specific property values in a Java file. The property name and the property value must be String literal parameters to a put method. The property name must be the first parameter, the key, and the property value must be the second parameter. This rule only converts the property values. A separate rule converts the property name if necessary. For example, the following code is flagged:map.put("kodo.Log", "Remote=TRACE, SQL=TRACE"); map.put("kodo.Log", "SQL=TRACE"); The automated fix will remove the value, Remote=TRACE, because it is not a valid OpenJPA value. |
| Class | Description |
|---|---|
| kodo.Log |
|
| kodo.ConnectionFactoryProperties |
|
| kodo.ConnectionFactory2Properties |
|
| kodo.MetaDataFactory |
|
| kodo.LockManager |
|
| kodo.OrphanedKeyAction |
|
| kodo.SavepointManager |
|
| kodo.Sequence |
|
| kodo.DataCache |
|
| kodo.QueryCompilationCache |
|
| kodo.jdbc.DBDictionary |
|
| kodo.jdbc.SchemaFactory |
|
| kodo.jdbc.MappingDefaults |
|
| kodo.ee.ManagedRuntime |
|
Note: WebSphere traditional V8.5.5 and Liberty Web Profile 6.0 uses OpenJPA for its JPA 2.0 implementation. WebSphere traditional V9.0 and Liberty's Java EE 7 JPA 2.1 implementation uses EclipseLink.