Hello,
we use the ObjectDB version 2.8.5_05.
We want to rename a field in an entity and it does not work:
from:
package com.btc.ep.analysis.verdict.tolerance.bl.internal.dmos; @Entity @Access (AccessType.FIELD) public class ToleranceDeviationImpl { @Basic private String referenceDatatype; @Basic private String comparisonDatatype; }
to:
@Basic private String referenceDisplayDataTypeName; @Basic private String comparisonDisplayDataTypeName;
We added the schema for renaming to the objectdb config:
<schema> <package name="com.btc.ep.atg4struct.bl.internal.dmos"> <class name="CoveragePropertyToBoolObserverImpl" new-name="com.btc.ep.atg4struct.internal.dmos.CoveragePropertyToBoolObserverImpl" /> </package> <package name="com.btc.ep.formalverification.al.enums"> <class name="ResultExpectationEnum" new-name="com.btc.ep.formalverification.enums.ResultExpectationEnum" /> </package> <package name="com.btc.ep.formalverification.bl.dmos"> <class name="ProofResult" new-name="com.btc.ep.formalverification.internal.dmos.ProofResult" /> <class name="ProofResult$Result" new-name="com.btc.ep.formalverification.internal.dmos.ProofResult$Result" /> <class name="ProofResult$TerminationReason" new-name="com.btc.ep.formalverification.internal.dmos.ProofResult$TerminationReason" /> </package> <package name="com.btc.ep.formalverification.bl.internal.dmos"> <class name="ProofSettingsImpl" new-name="com.btc.ep.formalverification.internal.dmos.ProofSettingsImpl" /> <class name="ProofResultImpl" new-name="com.btc.ep.formalverification.internal.dmos.ProofResultImpl" /> <class name="ProofImpl" new-name="com.btc.ep.formalverification.internal.dmos.ProofImpl" /> </package> <package name="com.btc.ep.analysis.verdict.tolerance.bl.internal.dmos"> <class name="ToleranceDeviationImpl"> <field name="referenceDatatype" new-name="referenceDisplayDataTypeName" /> <field name="comparisonDatatype" new-name="comparisonDisplayDataTypeName" /> </class> </package> </schema>
We have also class and package renaming for other entities and it works correctly.