| Author |
Message |
|
2006/10/12 23:29
|
|
|
Georg
Joined: 2006/08/24
Messages: 8
Offline
|
|
|
|
Hi All,
I use DBVA for JBuilder in Java with oracle 9.
All the time I have used DBVA up to now I only used it for reading data. I never wanted to save data.
Today I needed to save a new record.
I created a new object with the Factory of that type of object.
Then I add my infos/fill the attributes and at the end I call .save.
Nothing happens - no errors, messages & the record is not saved.
Do I have to push a commit or something?
What am I doing wrong?
Thanks for any hints...
|
|
|
|
 |
| |
|
2006/10/13 09:39
|
|
|
Jick
Joined: 2005/04/29
Messages: 2881
Offline
|
|
|
|
Hi Georg,
The best way to work with .save is to begin a transaction, save, and then commit. Is these what you have done? If the problem still occurs, could you try generate code, and send us the vp.log inside $vp-suite-install-dir/bin
Best regards,
Jick
|
Visual Paradigm International Ltd.
http://www.visual-paradigm.com
Build Quality Applications Faster, Better and Cheaper |
|
|
|
 |
| |
|
2006/10/13 15:41
|
|
|
Georg
Joined: 2006/08/24
Messages: 8
Offline
|
|
|
|
Hello!
I solved it.
I activated "print to error stream" in the error handling of the "generate code" window. Then I found out what SQL Errors orrured.
Jick: Thanks , a good tipp too!
Thanks!
|
|
|
|
 |
| |