|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
Problem with converted deployment xmlsHi All,
Today I have converted some deployment xmls from Toplink to eclipselink using packageRename utility. I did see some difference between the converted xmls using packageRename utility and the deployment file that is generated using eclipselink workbench (imported from oracle10.1.3 mwp file)
I am not able to load xmls that are migrated and having type conversions in it..
File containing type-conversion generated using packageRename Utility (Not able to load successfully using eclipselink)
------------------------------------------------------------------------
<attribute-mapping xsi:type="type-conversion-mapping">
<attribute-name>repriceRatesFlag</attribute-name> <field table="OFFER_INSTNC" name="REPRICE_RATES_FLG" xsi:type="column"/> <converter xsi:type="type-conversion-converter"> <object-class>java.lang.String</object-class> <data-class>java.lang.Integer</data-class> </converter> </attribute-mapping> File generated using eclipselink workbench ( able to load successfully and able to add descriptors to clientSession
----------------------------------------------------------------
<attribute-mapping xsi:type="direct-mapping">
<attribute-name>repriceRatesFlag</attribute-name> <field table="OFFER_INSTNC" name="REPRICE_RATES_FLG" xsi:type="column"/> <converter xsi:type="type-conversion-converter"> <object-class>java.lang.String</object-class> <data-class>java.lang.Integer</data-class> </converter> </attribute-mapping> Please fix the above issue or suggest me any alternative to resolve the issue.
_______________________________________________ eclipselink-users mailing list eclipselink-users@... https://dev.eclipse.org/mailman/listinfo/eclipselink-users |
|
|
Re: Problem with converted deployment xmlsIt should be "direct-mapping", "type-conversion-mapping" was deprecated in TopLink 10.1.3. You can change it manually, or edit the Package Renamer's "package-rename.properties" file and add the line,
type-conversion-mapping=direct-mapping Please log a bug to have this patched. (also should convert object-type-mapping, serialized-object-mapping).
James Sutherland EclipseLink, TopLink Wiki: EclipseLink, TopLink Forums: TopLink, EclipseLink Book: Java Persistence |
|
|
RE: [eclipselink-dev] Problem with converted deployment xmlsThis
is a known issue that is captured in the release notes.
The
work around is to not run the renamer on the files, and use your original xml
files.
_______________________________________________ eclipselink-users mailing list eclipselink-users@... https://dev.eclipse.org/mailman/listinfo/eclipselink-users |
|
|
Re: [eclipselink-dev] Problem with converted deployment xmlsThe base of this issue is that TypeConversionMapping was deprecated in TopLink
10.1.3 and removed in EclipseLink. I believe the best workaround is to ensure your 10.1.3 project files were exported without the "Generate Deprecated Direct Mappings" option chosen. -Tom PETER.KROGH@... wrote: > This is a known issue that is captured in the release notes. > > http://wiki.eclipse.org/EclipseLink/Release/1.0 (bug 239882 > <http://bugs.eclipse.org/239882>). > > The work around is to not run the renamer on the files, and use your > original xml files. > > > -----Original Message----- > *From:* BalaKrishna Penugonda [mailto:balakrishna.mca@...] > *Sent:* Tuesday, July 22, 2008 2:04 PM > *To:* EclipseLink User Discussions > *Cc:* eclipselink-dev@... > *Subject:* [eclipselink-dev] Problem with converted deployment xmls > > Hi All, > > Today I have converted some deployment xmls from Toplink to > eclipselink using packageRename utility. I did see some difference > between the converted xmls using packageRename utility and the > deployment file that is generated using eclipselink workbench > (imported from oracle10.1.3 mwp file) > > I am not able to load xmls that are migrated and having type > conversions in it.. > > > File containing type-conversion generated using packageRename > Utility (Not able to load successfully using eclipselink) > ------------------------------------------------------------------------ > <attribute-mapping xsi:type="*type-conversion-mapping*"> > <attribute-name>repriceRatesFlag</attribute-name> > <field table="OFFER_INSTNC" name="REPRICE_RATES_FLG" > xsi:type="column"/> > *<converter xsi:type="type-conversion-converter"> > * <object-class>java.lang.String</object-class> > <data-class>java.lang.Integer</data-class> > </converter> > </attribute-mapping> > > File generated using eclipselink workbench ( able to load > successfully and able to add descriptors to clientSession > ---------------------------------------------------------------- > > <attribute-mapping xsi:type="*direct-mapping*"> > <attribute-name>repriceRatesFlag</attribute-name> > <field table="OFFER_INSTNC" name="REPRICE_RATES_FLG" > xsi:type="column"/> > *<converter xsi:type="type-conversion-converter"> > * <object-class>java.lang.String</object-class> > <data-class>java.lang.Integer</data-class> > </converter> > </attribute-mapping> > > Please fix the above issue or suggest me any alternative to resolve > the issue. > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > eclipselink-dev mailing list > eclipselink-dev@... > https://dev.eclipse.org/mailman/listinfo/eclipselink-dev eclipselink-users mailing list eclipselink-users@... https://dev.eclipse.org/mailman/listinfo/eclipselink-users |
| Free embeddable forum powered by Nabble | Forum Help |