You are not logged in.
I am taking over the code for a Delphi REST client that was created using mORMot v. 1.18. I would like for the project to use the latest version of mORMot (v. 2). However, I am having a rather hard time doing so. Any hints/pointers would be greatly appreciated.
The old project has a unit named 'mORMotClient.pas.' The header for the file shows the following:
/// remote access to a mORMot server using SynCrossPlatform* units
// - retrieved from http://localhost:8089/root/wrapper/CrossPlatform/mORMotClient.pas
// at 2016-08-24 10:15:19 using "CrossPlatform.pas.mustache" template
unit mORMotClient;
{
WARNING:
This unit has been generated by a mORMot 1.18.2929 server.
Any manual modification of this file may be lost after regeneration.
Synopse mORMot framework. Copyright (C) 2016 Arnaud Bouchez
Synopse Informatique - http://synopse.info
This unit is released under a MPL/GPL/LGPL tri-license,
and therefore may be freely included in any application.
This unit would work on Delphi 6 and later, under all supported platforms
(including MacOSX, and NextGen iPhone/iPad), and the Free Pascal Compiler.
}
I am unable to locate the 'CrossPlatform.pas.mustache' file within the new version of mORMot. Is it still possible to generate the client wrapper using mORMot v. 2? It it is, is there a documentation available regarding this feature?
Offline
AFAIK, CrossPlatform.pas does not exist any more. I successfully migrated my project from the old mORMot version to the new version.
One of the resources I used to try to map the classes in the old version to the new version was this
mORMot2 migration table
https://synopse.info/forum/viewtopic.php?id=6598
After that, I just asked questions here when I got stuck.
Cheers,
JD
Offline
Thanks for the tip. The mORMot2 migration table appears to be very helpful.
Offline