


When I generate the offline adapters from my data model, I get following error:
template error in "ASOfflineAdapter.ftl": Method public fiber.gen.as.offline.SQLiteQueryGenerator fiber.gen.as.offline.OfflineHelper.getSQLiteQueryGenerator(java.lang.String) threw an exception when invoked on fiber.gen.as.offline.OfflineHelper@2ebe81 Mobile_App Unknown Data Model Code Generation Marker
is this a known issue and is here already a solution for?
My data model contains 18 entities with several relationships between them.
Thx!
Views
Replies
Sign in to like this content
Total Likes
Ok, very simpel!
Don't use "Type" as a key in your entity.
Stupid mistake, but when you're searching for that...
Views
Replies
Sign in to like this content
Total Likes
Sorry about that!
The generator probably should have caught that and thrown a meaningful error. Can you post an FML entity snippet that reproduces the problem? We can take a look at making this better in the future.
Tom
Views
Replies
Sign in to like this content
Total Likes
<entity name="Priority" persistent="true">
<annotation name="VisualModeler" x="634" y="12" width="115" height="78"/>
<annotation name="ServerProperties" ServerType="LCDS"/>
<annotation name="ActionScriptGeneration" OfflineAdapterPackage="com.mobility.offline" Package="com.mobility" ImplicitServicePackage="com.mobility.services" MDFPackage="com.mobility.form" GenerateOfflineAdapter="true"/>
<annotation name="JavaGeneration" Package="com.mobility.java" GenerateAssembler="true" AssemblerPackage="com.mobility.assembler"/>
<id name="ID" type="string" generated="true"/>
<id name="Type" type="string" generated="true"/>
<property name="Description" type="string"/>
</entity>
When the name of an id is "Type", the offline adapter file is generated empty with a error message.
Views
Replies
Sign in to like this content
Total Likes
I have opened a bug on this problem.
KenS
Data Services QE
Views
Replies
Sign in to like this content
Total Likes
We are not reproducing this issue using current builds of the modeler plugins. Can you let us know what builds you are using. Check plugin build number from the help/about eclipse dialog. Click installation details. Copy the 'Installed Software' view's contents and reply. Thanks.
Views
Replies
Sign in to like this content
Total Likes
1.0.2.v20100326273934
Views
Replies
Sign in to like this content
Total Likes
This issue is not reproduced with more current modeler plugins. If others run into this issue, please use the workaround. The workaround is to not use keywords as names.
Views
Replies
Sign in to like this content
Total Likes