|
Re: convert mapping source to mapping XML [message #1469970 is a reply to message #1467089] |
Wed, 12 November 2014 02:07 |
Chris Delahunt Messages: 1389 Registered: July 2009 |
Senior Member |
|
|
When dealing with the TopLink mapping workbench and talking about XML files, there are two possibilities that you could be referring to. The first are the set of XML files associated to the mapping workbench project itself. These are the files the workbench used and contained all the metadata needed by the workbench for its features such as entity generation, table generation etc. The workbench files contained quite a bit of information, and from it the workbench would generate a TopLink mapping file - either a project.xml or project.java class. This project.xml/project class would be used by TopLink runtime and would contain only the metadata required to map your java objects to the database. This process of creating a project file was unfortunately only one way as far as I am aware, so if you no longer have the original workbench project files, you might have to start over or continue to use the project java source with EclipseLink - if you start over, I would recommend using a tool such as Eclipse's Dali project and use the JPA interface, as it is easier to get started and still use EclipseLink/TopLink advanced features.
That said, the best way to validate is to load the session with logging enabled and check for warnings in the logs, and try to use your project by unit testing some crud operations and queries. The biggest problem with projects though is unexpected behavior, and validation is not likely to pick that up because it cannot determine what the developer intended, only what the settings tell it should be done. If you are having specific problems, you might try Oracle support as they might have experience with project files and know quickly what to look for. You might also try narrowing down the problem and posting as much as possible here.
Hope it helps,
Chris
|
|
|
Powered by
FUDForum. Page generated in 0.02782 seconds