Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem with versata generate code from data model

 
Ranch Hand
Posts: 239
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
This is my attribute:


for starter I'll choose Int32 as the type for field Id

and my rule


Now the code generated for this setting is:


which produced a compile error "Incompatible operand types int and BigDecimal". How do I fix this? Do I always have to manually edit the generated code?

the correct code should be:



 
Rancher
Posts: 3742
16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Don't post the same question more than once.
 
Hendra Kurniawan
Ranch Hand
Posts: 239
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
oh sorry, it's because I don't really know which section versata belongs.
 
Joanne Neal
Rancher
Posts: 3742
16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
One of the moderators will move your post to the correct forum if they think it's in the wrong one.
 
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
It doesn't have anything to do with Websphere, as far as I can see. So I will close this copy of the question.

I note from their website that they describe their customer support as "WOW". So you would think you could ask them a question like this, instead of having to post it on an Internet forum. On the other hand when they devote their entire FAQ to explaining a court case they are involved in, perhaps they actually don't have any time for customer support.
 
    Bookmark Topic Watch Topic
  • New Topic