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
VP & one-to-one relationship  
Forum Index -> Visual Paradigm for UML (VP-UML)
Author Message
maurizio316


Joined: 2007/06/22
Messages: 37

Offline

Hi,
I've some issue with 1-1 relationship.
I'm using latest version of VP for linux, c# orm generation code and smart assosaction.
I have follow objects one<1--1>two, when I've try to assign null value to one.two object attribute I always get null pointer exception.
I take a look to code generated and I found something IMHO wrong. I think need to insert the line below
Code:
 public global::com.dbi.extranet.newsletter.ElementoNewsletter ElementoNewsletter
         {
             set
             {
                 if (__elementoNewsletter != value)
                 {
                     this.__elementoNewsletter = value;
                     --->>if (__elementoNewsletter != null)<<----
                         __elementoNewsletter.Notizie = this;
                 }
             }
             get
             {
                 return __elementoNewsletter;
             }
         } 
 

Thanks

Maurizio
 
Jick


Joined: 2005/04/29
Messages: 2880

Offline

Hi Maurizio,

Thank you for your post. I will forward your question to our engineers and post their reply here as soon as I can.

Best regards,
Jick

Visual Paradigm International Ltd.
http://www.visual-paradigm.com

Build Quality Applications Faster, Better and Cheaper
 
LilianWong


Joined: 2008/02/22
Messages: 459

Offline

Hi Maurizio,

We have fixed the application for the problem of one-to-one-relationship. Please download the patch at: http://files3.visual-paradigm.com/200803/Patch/sp1_20080311j/VP_Suite_Windows_3_2_sp1_20080311j.exe

To use the patch:
1. Exit any running instance of VP
2. Install by overwriting the current installation
3. Restart the product

Note: This patch is made for VP Suite 3.2 SP1 (VP-UML 6.2 SP1). Please make sure you have a valid product license. Otherwise, you won't be able to start up the product after the installation.

If there is anything I can help, please do not hesitate to ask.

Best regards,
Lilian Wong
 
maurizio316


Joined: 2007/06/22
Messages: 37

Offline

Hi Lilian,
nice to meet you...
Could you send me Linux version please ?

 
LilianWong


Joined: 2008/02/22
Messages: 459

Offline

Hi Maurizio,

Sure!
Please download the patch for Linux in the following link. If you need any help in the future, please do not hesitate to ask.

http://files3.visual-paradigm.com/200803/Patch/sp1_20080311j/VP_Suite_Linux_3_2_sp1_20080311j.sh

Best regards,
Lilian Wong
 
 
   Forum Index -> Visual Paradigm for UML (VP-UML)
Go to:   
Powered by JForum 2.1.4 © 2005 - Rafael Steil