Sculpture Community  Sculpture Discu...  Sculpture 2.1  Complex Type Question
Previous Previous
 
Next Next
New Post 3/12/2010 11:04 AM
  peteryauhk
3 posts


Complex Type Question 
Hi,

I have a problem when using Complex type in my project.
When I created 2 complex type that have same member name, there will be a error during code validation.
Is there a work around or I have to make every member in the complex type distinct from each another.

Also, can I have 2 instance of a same complex type within an entity. I got an error when I try to generate code for this circumstance.

Thanks,


Regards,
Peter Yau

 
New Post 3/13/2010 10:52 AM
  TAboraya
258 posts


Re: Complex Type Question 

Peter,

I think that you need to get a look at the mapping details of these complex types, if all mapping details is defined well please send us the problem description (the syntax of the error) so we can investigate more in the problem.

 

Best Regards,


Tamer Aboraya - Product Manager - Sculpture project
 
New Post 3/15/2010 6:35 AM
  MicL
42 posts


Re: Complex Type Question 

Hi TAboraya,

1. Create two Complex Types

1.1 CResult2, with member

1.1.1 Result: String

1.2 CTestRes, with members

1.2.1 CheckDate: DateTime

1.2.2 Result: String

2. Create an Entity JOBB with members

2.1 JobName: String

2.2 ResultB: CResult2

2.3 ResultC: CTestRes

2.4 Mapping

2.4.1 JobBName -> JobBName

2.4.2 ResultB.CheckDate -> ResultB_CheckDate

2.4.3 ResultB.Result -> ResultB_Result

2.4.4 ResultC.Result -> ResultC_Result

3. Validate with errors

3.1 Entity 'JobB' Member 'Result' Mapping Error: Member is not mapped.

3.2 Entity 'JobB' Member 'Result' Mapping Error: Member is not mapped.

Regards,

Michael Leung

 
New Post 3/15/2010 10:16 AM
  peteryauhk
3 posts


Re: Complex Type Question 

Hi,

My example is I have 2 complex types. Let's say Customer and SaleStaff, both have member "Name" (string).

If I inserts them (cus as Customer, staff as SaleStaff) into one entity, (eg. Invoice). The mapping information is as follows:(cus.Name  --> cus_Name) and (staff.Name --> staff_Name)

I have the following error when I validate the code "Error 1 Entity 'Invoice' Member 'Name' Mapping Error : Member is not mapped."

Thanks for your help.

 

With Best Regards,

Peter

 
New Post 3/16/2010 2:20 PM
  TAboraya
258 posts


Re: Complex Type Question 

peteryauhk, Michael,

I run the same scenario and get the error.

This issue will be fixed in the next release.

Thanks for your patient,

 

Best Regards,


Tamer Aboraya - Product Manager - Sculpture project
 
Previous Previous
 
Next Next
  Sculpture Community  Sculpture Discu...  Sculpture 2.1  Complex Type Question
Users Minimize
 
Membership Membership:
Latest New User Latest: Fosna
New Today New Today: 3
New Yesterday New Yesterday: 7
User Count Overall: 2772

People Online People Online:
Visitors Visitors: 0
Members Members: 0
Total Total: 0

Online Now Online Now: