Visual Paradigm Logo
     Build Quality Applications Faster, Better and Cheaper
 
Home | Products | Download | Documentation | Support | Resources | Partners | Quick Tour | Shop | Company |  
 
   Visual Paradigm Discussion Forum
  Login   [ Register ] Email: Password: Log me on automatically I lost my password  
Recent Topics
Advanced Search
.save method problem  
Forum Index -> DB Visual ARCHITECT (DB-VA)
Author Message
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...
 
Jick


Joined: 2005/04/29
Messages: 2880

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
 
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!
 
 
   Forum Index -> DB Visual ARCHITECT (DB-VA)
Go to:   
Powered by JForum 2.1.4 © 2005 - Rafael Steil