File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes IDEs, Version Control and other tools and the fly likes Problems when generating code for data model in Eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Problems when generating code for data model in Eclipse" Watch "Problems when generating code for data model in Eclipse" New topic
Author

Problems when generating code for data model in Eclipse

Hendra Kurniawan
Ranch Hand

Joined: Jan 31, 2011
Posts: 239
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

Joined: Jan 31, 2011
Posts: 239
Perhaps I forgot to tell that this is using versata workbench 7. anybody familiar with it? thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problems when generating code for data model in Eclipse
 
Similar Threads
Unable to execute insertion!
Funny gassy cartoons!
something wrong with null exception in I/O processing
question about sub class
Snowmageddon