|
| SDO Generation issue with xsd:date data type |
 |
Mon, 31 Mar 2008 15:53:58 EDT |
Hi,<br />
<br />
I'm generating SDOs from xsd schema file and I have alot of elements with type
xsd:date, dateTime and time, the problem is that these elements are generated as
java.lang.Object and I need them to be generated as Calendar. Is there any way
to force that xsd:date to be generated as Calendar ??<br />
<br />
|
| Post Reply
|
| Re: SDO Generation issue with xsd:date data type |
 |
Mon, 31 Mar 2008 17:10:41 -050 |
Can you elaborate on what you mean when you say you are creating SDOs from
xsd files? If using WID, then simply importing an XSD into the project
results in a Data Type entry being created which is the Business Object
definition. How are you getting from there to the concept of Java types?
|
| Post Reply
|
| Re: SDO Generation issue with xsd:date data type |
 |
Mon, 31 Mar 2008 21:57:45 -040 |
If you are attempting to generate java code based on the XSD definition (i
like to call it a staticly defined type) ie: Type Customer Implements
DataObject... That doesn't work. You have to stay in the abstract API of
get("property").
--
Dan Zrobok -Technical Architect - Perficient
WID/WPS/WESB Blog: http://blog.danzrobok.com
"Mahmoud Matouk" <dwforums@us.ibm.com> wrote in message
news:1250992855.1206993268497.JavaMail.wassrvr@ltsgwas009.sby.ibm.com...
> Hi,<br />
> <br />
> I'm generating SDOs from xsd schema file and I have alot of elements with
> type xsd:date, dateTime and time, the problem is that these elements are
> generated as java.lang.Object and I need them to be generated as Calendar.
> Is there any way to force that xsd:date to be generated as Calendar
??<br
> />
> <br />
> Thanks
|
| Post Reply
|
| Re: SDO Generation issue with xsd:date data type |
 |
Tue, 01 Apr 2008 02:43:26 EDT |
Hi,<br />
<br />
I mean that I have XSD schema file and I'm generating SDOs from it using WID;
e.g. right click the file > generate Java > select SDO Generator,
The problem is that elements with type date or date time get generated as
java.lang.Object e.g. if I have a complex type Person with elemnt dateOfBirth of
type xsd:date, in the generated Interface Person I have java.lang.Object
dateOfBirth. my requirement is to make the generator generate thos attribute as
java.util.Calendar dateOfBirth.<br />
<br />
I hope this made it clear, and thanks all for support.<br />
<br />
|
| Post Reply
|
| Re: SDO Generation issue with xsd:date data type |
 |
Tue, 01 Apr 2008 09:14:59 EDT |
Aha!! With you now ... well ... hmmm ... err... well ...<br />
<br />
Here is what I think is happening ... and I won't swear that this is the
final/accurate story ... but it is my best interpretation.<br />
<br />
|
| Post Reply
|
|
|
|
|
|
|
|
|
|