These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: Whats wrong with this..component declaration..
PostPosted: Fri Jul 14, 2006 2:47 pm 
Beginner
Beginner

Joined: Fri Jul 07, 2006 12:08 pm
Posts: 37
in a xml file..for a class...i have this defined

<component class ="MarkupPercentage" name="TransportPackageMarkupPercentage" insert ="true" update ="true" >
<property name ="MarkUpPercentage" column ="TransportPackageMarkupPercentage" />
</component >


and compopnent class

Code:
public class MarkupPercentage
    {
       private double  m_MarkupPercentage;

       public MarkupPercentage(double markuppercentage)
        {
            m_MarkupPercentage = markuppercentage;
        }

       public double MarkUpPercentage
       {
           get { return m_MarkupPercentage; }
       }

       private MarkupPercentage()
       { }

    }



thks[/code]


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 14, 2006 3:46 pm 
Contributor
Contributor

Joined: Wed May 11, 2005 4:59 pm
Posts: 1766
Location: Prague, Czech Republic
Are we supposed to guess? What error are you getting?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 14, 2006 11:56 pm 
Beginner
Beginner

Joined: Fri Jul 07, 2006 12:08 pm
Posts: 37
the error i am getting..

Value cannot be null..parameter name:method info


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jul 15, 2006 1:06 am 
Beginner
Beginner

Joined: Fri Jul 07, 2006 12:08 pm
Posts: 37
issue solved..there was no setter only getter..for the property


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.