Hi , 

Thanks for replying. Let me try that for Date. 

I also observed that betwixt can not convert the 'int' as the object passed  to the 
method is Integer instead of int. I do not see any error but the  values set in the 
bean are 0's which are default values .

I supplied a bean to betwixt and converted it to XML. Then used the betwixt to read 
the XML to convert it to bean. I do not see the bean's 'int' attributes populated as I 
supplied in the first place. 

Thanks and Regards,
Ujjwala

-----Original Message-----
From: robert burrell donkin [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 28, 2003 3:17 PM
To: Jakarta Commons Users List
Subject: Re: Set date issue

hi

betwixt uses ConvertUtils to perform date to string conversions. if you 
haven't, then try registering a converter that understands the date format 
you use.

for example

      MyDateConverter converter = new MyDateConverter();
      ConvertUtils.register(converter, java.util.Date.class);

- robert

On Tuesday, July 22, 2003, at 06:39 PM, Ujjwala Kulkarni wrote:

> Hi ,
>
> Not sure why I am not able to attach the java file but pasting the code 
> for
>
> /*
>  * Created on Feb 20, 2003
>  *
>  * To change this generated comment go to
>  * Window>Preferences>Java>Code Generation>Code Template
>  */
> package com.bea.it.cib.common.license;
>
> import java.util.Collection;
> import java.util.Date;
> import java.util.ArrayList;
> import java.io.Serializable;
>
> import com.bea.it.cib.common.order.OrderRequestLineDTO;
> import com.bea.is.domain.DomainObject;
> import com.bea.is.data.persistence.PersistenceCommand;
>
> /**
>  * @author CIB Team
>  */
> public class LicenseActivityDTO extends DomainObject implements 
> Serializable {
>
>       private String activitySeq = null;
>       private Collection fromLicense = new ArrayList();
>       private Collection toLicense = new ArrayList();
>       private LicenseActivityType activityType = null; //constants
>       private SourceType SourceType = null;
>       private Date createDate = null;
>       private Date lastUpdate = null;
>       private Date lastUpdateUserId = null;
>       private OrderRequestLineDTO orderRequestLine = null;
>       private Collection oldKeysRef = new ArrayList();
>       // only used if old lic isnt avail
>       private Collection oldOrderLinesRef = new ArrayList();
>       //used in the ELA Burndown scenario
>
>       public LicenseActivityDTO() {
>               this(null);
>       }
>
>       public LicenseActivityDTO(LicenseActivityType activityType) {
>               this.activityType = activityType;
>               this.setCommand(PersistenceCommand.NEW);
>       }
>
>       /**
>        * @return String
>        */
>       public String getActivitySeq() {
>               return activitySeq;
>       }
>
>       /**
>        * @return Calendar
>        */
>       public Date getCreateDate() {
>               return createDate;
>       }
>
>       /**
>        * @return LicenseDTO
>        */
>       public Collection getFromLicense() {
>               return fromLicense;
>       }
>
>       /**
>        * @return Date
>        */
>       public Date getLastUpdate() {
>               return lastUpdate;
>       }
>
>       /**
>        * @return Date
>        */
>       public Date getLastUpdateUserId() {
>               return lastUpdateUserId;
>       }
>
>       /**
>        * @return OrderRequestLineDTO
>        */
>       public OrderRequestLineDTO getOrderRequestLine() {
>               return orderRequestLine;
>       }
>
>       /**
>        * @return RequestSourceType
>        */
>       public SourceType getSourceType() {
>               return SourceType;
>       }
>
>       /**
>        * @return LicenseDTO
>        */
>       public Collection getToLicense() {
>               return toLicense;
>       }
>
>       /**
>        * Sets the activitySeq.
>        * @param activitySeq The activitySeq to set
>        */
>       public void setActivitySeq(String activitySeq) {
>               this.activitySeq = activitySeq;
>       }
>
>       /**
>        * Sets the createDate.
>        * @param createDate The createDate to set
>        */
>       public void setCreateDate(Date createDate) {
>               this.createDate = createDate;
>       }
>
>       /**
>        * Sets the lastUpdate.
>        * @param lastUpdate The lastUpdate to set
>        */
>       public void setLastUpdate(Date lastUpdate) {
>               this.lastUpdate = lastUpdate;
>       }
>
>       /**
>        * Sets the lastUpdateUserId.
>        * @param lastUpdateUserId The lastUpdateUserId to set
>        */
>       public void setLastUpdateUserId(Date lastUpdateUserId) {
>               this.lastUpdateUserId = lastUpdateUserId;
>       }
>
>       /**
>        * Sets the orderRequestLine.
>        * @param orderRequestLine The orderRequestLine to set
>        */
>       public void setOrderRequestLine(OrderRequestLineDTO 
> orderRequestLine) {
>               this.orderRequestLine = orderRequestLine;
>       }
>
>       /**
>        * Sets the requestSourceType.
>        * @param SourceType The SourceType to set
>        */
>       public void setRequestSourceType(SourceType SourceType) {
>               this.SourceType = SourceType;
>       }
>
>       /**
>        * @return LicenseActivityTypeEnum
>        */
>       public LicenseActivityType getActivityType() {
>               return activityType;
>       }
>
>       /**
>        * Sets the activityType.
>        * @param activityType The activityType to set
>        */
>       public void setActivityType(LicenseActivityType activityType) {
>               this.activityType = activityType;
>       }
>
>       public Collection getOldKeysRef() {
>               return oldKeysRef;
>       }
>
>       public void addOldKeyRef(LicenseKeyDTO licKey) {
>               this.oldKeysRef.add(licKey);
>       }
>
>       public Collection getOldOrderLinesRef() {
>               return oldOrderLinesRef;
>       }
>
>       public void addOldOrderLinesRef(OrderRequestLineDTO orld) {
>               this.oldOrderLinesRef.add(orld);
>       }
>       /* (non-Javadoc)
>        * @see java.lang.Object#toString()
>        */
>       public String toString() {
>               StringBuffer strBuf = new StringBuffer();
>               strBuf.append("\n\t===================================");
>               strBuf.append("\n\tStart Contents of License Activity ");
>               strBuf.append("\n\t===================================");
>               strBuf.append("\n\tActivity Sequence = " + this.activitySeq);
>               strBuf.append("\n\tActivity Type = " + this.activityType);
>               strBuf.append("\n\tPersistence Command = " + this.command);
>               strBuf.append("\n\tCreate Date = " + this.createDate);
>               strBuf.append("\n\tFrom License = " + this.fromLicense);
>               strBuf.append("\n\tLast Update = " + this.lastUpdate);
>               strBuf.append("\n\tLast Updated User ID = " + this.lastUpdateUserId);
>               strBuf.append("\n\tOld Keys Ref = " + this.oldKeysRef);
>               strBuf.append("\n\tOld Order Line Ref = " + this.oldOrderLinesRef);
>               strBuf.append("\n\tOrder Request Line = " + this.orderRequestLine);
>               strBuf.append("\n\tSource Type = " + this.SourceType);
>               strBuf.append("\n\t===================================");
>               strBuf.append("\n\tEnd Contents of License Activity ");
>               strBuf.append("\n\t===================================");
>
>               return strBuf.toString();
>       }
>
> }
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to