This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problems when generating code for data model in Eclipse

 
Hendra Kurniawan
Ranch Hand
Posts: 239
  • Mark post as helpful
  • send pies
  • Quote
  • 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:



 
Hendra Kurniawan
Ranch Hand
Posts: 239
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Perhaps I forgot to tell that this is using versata workbench 7. anybody familiar with it? thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic